
:root {
  --surface: #f5f7f6;
  --surface-container: #e6e9e8;
  --surface-container-low: #eff1f0;
  --surface-lowest: #ffffff;
  --ink: #2c2f2f;
  --muted: #595c5c;
  --primary: #006851;
  --primary-container: #5ef5ca;
  --accent-dark: #005946;
  --highlight: #ff9651;
  --wrong: #b31b25;
  --secondary-container: #ffc965;
  --secondary-ink: #5f4200;
  --tertiary-container: #ff9651;
  --error-container: #fb5151;
  --tile-shadow: 0 18px 36px rgba(44, 47, 47, 0.06);
  --card-shadow: 0 20px 40px rgba(44, 47, 47, 0.06);
  --radius: 2rem;
  --game-accent: #006851;
  --game-accent-strong: #005946;
  --game-accent-soft: #e4f8ee;
  --game-accent-border: #74d9b5;
  --game-accent-rgb: 0, 104, 81;
  --success: #0f7a45;
  --success-strong: #0b5f35;
  --success-soft: #e9f8ef;
  --success-border: #77cf9c;
  --success-rgb: 15, 122, 69;
  --correct: var(--success);
  --correct-strong: var(--success-strong);
  --correct-soft: var(--success-soft);
  --correct-border: var(--success-border);
  --correct-rgb: var(--success-rgb);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
  line-height: 1;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Be Vietnam Pro", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 560px at 50% -180px, #fbfdfc 0%, transparent 70%),
    linear-gradient(180deg, #f3f5f4 0%, var(--surface) 100%);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 0 1.15rem;
}

body[data-active-game="arithmetic"] {
  --game-accent: #d33a4a;
  --game-accent-strong: #a7182f;
  --game-accent-soft: #ffe8eb;
  --game-accent-border: #ef9ca8;
  --game-accent-rgb: 211, 58, 74;
}

body[data-active-game="sequence"] {
  --game-accent: #1ba785;
  --game-accent-strong: #0f7f65;
  --game-accent-soft: #e2faf3;
  --game-accent-border: #90e2cd;
  --game-accent-rgb: 27, 167, 133;
}

body[data-active-game="matrix"] {
  --game-accent: #d39a15;
  --game-accent-strong: #aa7600;
  --game-accent-soft: #fff5da;
  --game-accent-border: #eccf80;
  --game-accent-rgb: 211, 154, 21;
}

body[data-active-game="pattern-matrix"] {
  --game-accent: #df6f2d;
  --game-accent-strong: #b45119;
  --game-accent-soft: #ffecdf;
  --game-accent-border: #f4bb98;
  --game-accent-rgb: 223, 111, 45;
}

body[data-active-game="analogy"] {
  --game-accent: #9e7a00;
  --game-accent-strong: #7e6100;
  --game-accent-soft: #f8f0d4;
  --game-accent-border: #d4bc69;
  --game-accent-rgb: 158, 122, 0;
}

body[data-active-game="memory-order"] {
  --game-accent: #0c8568;
  --game-accent-strong: #066c53;
  --game-accent-soft: #dcf4ec;
  --game-accent-border: #79d0b8;
  --game-accent-rgb: 12, 133, 104;
}

body[data-active-game="spatial-rotation"] {
  --game-accent: #2e5f9e;
  --game-accent-strong: #21497a;
  --game-accent-soft: #e6eef9;
  --game-accent-border: #95b3d8;
  --game-accent-rgb: 46, 95, 158;
}

body[data-active-game="visual_completion"] {
  --game-accent: #b45a16;
  --game-accent-strong: #8a4210;
  --game-accent-soft: #fff0e4;
  --game-accent-border: #e8b182;
  --game-accent-rgb: 180, 90, 22;
}

body[data-active-game="visual_composition"] {
  --game-accent: #33539c;
  --game-accent-strong: #273f78;
  --game-accent-soft: #e8ecfb;
  --game-accent-border: #98aee5;
  --game-accent-rgb: 51, 83, 156;
}

body[data-active-game="line_composition"] {
  --game-accent: #3f5f98;
  --game-accent-strong: #2f4874;
  --game-accent-soft: #e9eef9;
  --game-accent-border: #9db0d9;
  --game-accent-rgb: 63, 95, 152;
}

.top-app-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(245, 247, 246, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(44, 47, 47, 0.06);
}

.top-app-shell {
  width: min(1200px, 96vw);
  margin: 0 auto;
  padding: 0.95rem 0.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-app-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.auth-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.auth-btn,
.auth-menu-trigger {
  min-height: 2.35rem;
  border: 0;
  border-radius: 999px;
  font-family: "Plus Jakarta Sans", "Be Vietnam Pro", sans-serif;
  font-weight: 800;
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.44rem 0.78rem;
  background: #ffffff;
  color: #24403a;
  box-shadow: inset 0 0 0 1px rgba(63, 69, 69, 0.14);
}

.auth-btn:hover,
.auth-menu-trigger:hover {
  transform: translateY(-1px);
}

.auth-btn:focus-visible,
.auth-menu-trigger:focus-visible,
.auth-menu-item:focus-visible,
.auth-dialog-close:focus-visible,
.auth-mode-tab:focus-visible,
.auth-provider-btn:focus-visible,
.auth-resend-btn:focus-visible,
.auth-notice-action:focus-visible,
.auth-notice-close:focus-visible {
  outline: 3px solid rgba(var(--game-accent-rgb), 0.36);
  outline-offset: 3px;
}

.auth-btn .material-symbols-outlined {
  font-size: 1.15rem;
}

.auth-user {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.22rem 0.24rem 0.22rem 0.78rem;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(63, 69, 69, 0.14);
}

.auth-user-label {
  max-width: 13rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #24403a;
  font-size: 0.9rem;
  font-weight: 800;
}

.auth-menu-trigger {
  padding: 0.38rem 0.66rem;
  background: var(--surface-container-low);
  color: #485557;
}

.auth-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 70;
  min-width: 13.75rem;
  padding: 0.35rem;
  border: 1px solid rgba(42, 70, 68, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(18, 31, 34, 0.14);
}

.auth-menu-item {
  width: 100%;
  min-height: 2.25rem;
  padding: 0.5rem 0.7rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #243735;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  text-align: left;
}

.auth-sound-toggle {
  display: grid;
  grid-template-columns: 1.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
}

.auth-menu-item-icon {
  color: #087461;
  font-size: 1.12rem;
}

.auth-switch {
  width: 2.15rem;
  height: 1.2rem;
  padding: 0.12rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: #ccd8d5;
  transition: background-color 140ms ease;
}

.auth-switch-thumb {
  width: 0.96rem;
  height: 0.96rem;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(20, 35, 37, 0.22);
  transform: translateX(0);
  transition: transform 140ms ease;
}

.auth-sound-toggle.active .auth-switch {
  background: #087461;
}

.auth-sound-toggle.active .auth-switch-thumb {
  transform: translateX(0.95rem);
}

.auth-sound-muted-indicator {
  color: #5e6f6d;
  font-size: 1.05rem;
}

.auth-menu-item:hover {
  background: #eef4f2;
}

.auth-status {
  min-height: 2.35rem;
  padding: 0.48rem 0.78rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  color: #485557;
  box-shadow: inset 0 0 0 1px rgba(63, 69, 69, 0.14);
  font-family: "Plus Jakarta Sans", "Be Vietnam Pro", sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.auth-notice {
  position: fixed;
  top: 5rem;
  left: 50%;
  z-index: 130;
  width: min(35rem, calc(100vw - 2rem));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid rgba(42, 70, 68, 0.14);
  border-radius: 8px;
  padding: 0.72rem 0.84rem;
  background: #ffffff;
  box-shadow: 0 20px 56px rgba(12, 26, 29, 0.18);
  color: #213532;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}

.auth-notice.success {
  border-color: rgba(10, 109, 69, 0.24);
  background: #ecf8f0;
  color: #0a6d45;
}

.auth-notice.error {
  border-color: rgba(156, 56, 28, 0.2);
  background: #fff0eb;
  color: #9c381c;
}

.auth-notice-action,
.auth-notice-close {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.auth-notice-action {
  white-space: nowrap;
  text-decoration: underline;
}

.auth-notice-close {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
}

.auth-notice-close .material-symbols-outlined {
  font-size: 1.08rem;
  line-height: 1;
}

.auth-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(15, 28, 29, 0.42);
}

.auth-dialog {
  width: min(27rem, 100%);
  border: 1px solid rgba(42, 70, 68, 0.14);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(12, 26, 29, 0.22);
  padding: 1.15rem;
}

.auth-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.auth-dialog-header h2 {
  margin: 0;
  color: #182625;
  font-size: 1.18rem;
  line-height: 1.2;
}

.auth-dialog-header p {
  margin: 0.35rem 0 0;
  color: #5a6866;
  font-size: 0.92rem;
  line-height: 1.45;
}

.auth-dialog-close {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #eef4f2;
  color: #263936;
  cursor: pointer;
}

.auth-dialog-close .material-symbols-outlined {
  font-size: 1.15rem;
}

.auth-mode-tabs {
  margin-top: 1rem;
  padding: 0.22rem;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #eef4f2;
}

.auth-mode-tab {
  min-height: 2.35rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #455755;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
}

.auth-mode-tab.active {
  background: #ffffff;
  color: #087461;
  box-shadow: 0 6px 18px rgba(23, 47, 50, 0.09);
}

.auth-email-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.78rem;
}

.auth-field {
  display: grid;
  gap: 0.38rem;
  color: #30423f;
  font-size: 0.86rem;
  font-weight: 800;
}

.auth-field input {
  width: 100%;
  min-height: 2.55rem;
  border: 1px solid rgba(42, 70, 68, 0.18);
  border-radius: 6px;
  padding: 0.55rem 0.72rem;
  color: #162321;
  background: #fbfdfc;
  font: inherit;
  font-size: 0.96rem;
}

.auth-field input:focus {
  outline: 3px solid rgba(var(--game-accent-rgb), 0.22);
  border-color: rgba(var(--game-accent-rgb), 0.54);
}

.auth-password-help {
  margin: -0.24rem 0 0;
  color: #66736f;
  font-size: 0.8rem;
  line-height: 1.35;
}

.auth-form-error {
  margin: 0;
  border-radius: 6px;
  padding: 0.58rem 0.68rem;
  background: #fff0eb;
  color: #9c381c;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.35;
}

.auth-form-error.success {
  background: #ecf8f0;
  color: #0a6d45;
}

.auth-resend-btn {
  width: fit-content;
  min-height: 1.8rem;
  border: 0;
  padding: 0;
  background: transparent;
  color: #087461;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
}

.auth-resend-btn:hover {
  color: #075646;
  text-decoration: underline;
}

.auth-resend-btn:disabled {
  cursor: progress;
  opacity: 0.7;
}

.auth-submit-btn {
  width: 100%;
  min-height: 2.65rem;
}

.auth-submit-btn:disabled {
  cursor: progress;
  opacity: 0.72;
}

.auth-provider-options {
  margin-top: 1rem;
  display: grid;
  gap: 0.6rem;
}

.auth-provider-divider {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #75817e;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-provider-divider::before,
.auth-provider-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(42, 70, 68, 0.14);
}

.auth-provider-btn {
  min-height: 2.55rem;
  border: 1px solid rgba(42, 70, 68, 0.16);
  border-radius: 6px;
  background: #ffffff;
  color: #263936;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.auth-provider-btn:hover {
  background: #f5f9f7;
}

.lang-globe {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #3f4545;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(63, 69, 69, 0.12);
}

.app {
  z-index: 1;
  width: min(1180px, 95vw);
  margin: 1rem auto 0;
  padding-bottom: 1rem;
}

body.menu-active .app,
body:not(.menu-active) .app {
  margin-top: 6.8rem;
}

.card {
  background: var(--surface-lowest);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 1.4rem;
  display: none;
  animation: rise-in 320ms ease;
}

.card.active {
  display: block;
}

.legal-page {
  min-height: 18rem;
}

.legal-page h1 {
  margin: 0 0 1rem;
}

.legal-page p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

#menu-screen.card {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

#game-screen.active {
  display: flex;
  flex-direction: column;
  min-height: auto;
  max-height: none;
  overflow-y: auto;
}

#game-screen.active .question-wrap {
  flex: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

#game-screen.active .choices {
  margin-top: 0.7rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #5f6a6b;
  font-size: 0.8rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0.4rem 0 0.6rem;
  font-family: "Plus Jakarta Sans", "Be Vietnam Pro", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.subtitle {
  margin: 0;
  color: var(--muted);
}

.brand-lockup,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
}

.brand-home {
  cursor: pointer;
  user-select: none;
  border-radius: 999px;
}

.brand-home:focus-visible {
  outline: 3px solid rgba(var(--game-accent-rgb), 0.38);
  outline-offset: 4px;
}

.brand-mark {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  background: linear-gradient(150deg, #16b894, var(--primary));
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 14px rgba(0, 104, 81, 0.24);
}

.brand-mark-icon {
  font-size: 1.28rem;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.brand-name {
  font-family: "Plus Jakarta Sans", "Be Vietnam Pro", sans-serif;
  font-size: clamp(2rem, 2.9vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0;
  color: #0e5f4b;
}

.language-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  padding: 0.18rem;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(63, 69, 69, 0.12);
}

.lang-btn {
  border: 0;
  border-radius: 999px;
  min-width: 2.55rem;
  min-height: 2rem;
  padding: 0.3rem 0.58rem;
  background: transparent;
  color: #485557;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease, color 120ms ease;
}

.menu-shell {
  background: var(--surface-container);
  border-radius: 2.35rem;
  padding: clamp(1.25rem, 2vw, 1.95rem);
  box-shadow: inset 0 0 0 1px rgba(116, 119, 119, 0.15);
}

.home-greeting {
  margin: 0 0 0.95rem;
  color: #3f5659;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 800;
  text-align: center;
}

.menu-age-section,
.age-picker {
  margin-top: 0;
  text-align: center;
  padding: 0.25rem 0.7rem 0.1rem;
}

.age-options,
.difficulty-options {
  margin: 0.72rem auto 0;
  padding: 0.5rem 0.65rem 0.95rem;
  width: fit-content;
  display: flex;
  gap: 0.42rem;
  flex-wrap: wrap;
  border-radius: 999px;
  background: var(--surface-container-low);
  box-shadow: inset 0 0 0 2px rgba(171, 174, 173, 0.28);
}

.age-btn,
.difficulty-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.68rem 1.2rem;
  min-width: 132px;
  background: var(--surface-lowest);
  color: #526265;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
  position: relative;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(171, 174, 173, 0.6);
  transition: transform 160ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 160ms ease, background-color 140ms ease, color 140ms ease;
}

.age-btn:hover,
.difficulty-btn:hover {
  transform: translateY(2px);
  box-shadow: 0 4px 0 rgba(171, 174, 173, 0.58);
}

.age-btn.active,
.difficulty-btn.active,
.age-btn[aria-pressed="true"],
.difficulty-btn[aria-pressed="true"] {
  background: var(--secondary-container);
  color: var(--secondary-ink);
  box-shadow: 0 6px 0 #6b4b00;
}

.age-btn.active:hover,
.difficulty-btn.active:hover,
.age-btn[aria-pressed="true"]:hover,
.difficulty-btn[aria-pressed="true"]:hover {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #6b4b00;
}

.age-btn[aria-pressed="true"]::after,
.difficulty-btn[aria-pressed="true"]::after {
  content: "";
}

.lang-btn.active,
.lang-btn[aria-pressed="true"] {
  background: linear-gradient(140deg, #3be4ba, #1ba785);
  color: #043f31;
}

.rules {
  margin: 1rem 0 1.3rem;
  padding-left: 1.1rem;
  color: var(--ink);
  line-height: 1.45;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  font-family: "Plus Jakarta Sans", "Be Vietnam Pro", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 160ms ease, filter 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: #ffffff;
}

.btn.secondary {
  background: var(--secondary-container);
  color: var(--secondary-ink);
}

#game-screen .btn.primary,
#end-screen .btn.primary {
  background: linear-gradient(135deg, var(--game-accent-strong), var(--game-accent));
  color: #ffffff;
}

#game-screen.card,
#end-screen.card {
  box-shadow:
    0 20px 40px rgba(var(--game-accent-rgb), 0.1),
    0 0 0 2px rgba(var(--game-accent-rgb), 0.12) inset;
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0;
}

.domain-column {
  --domain-accent: rgba(0, 104, 81, 0.26);
  --domain-soft: rgba(0, 104, 81, 0.08);
  padding: 0.9rem 0.72rem 0.68rem;
  border-radius: 1.65rem;
  background: linear-gradient(180deg, var(--domain-soft) 0%, rgba(255, 255, 255, 0) 58%);
  box-shadow: inset 0 0 0 1px rgba(116, 119, 119, 0.16);
}

.domain-processing {
  --domain-accent: rgba(15, 122, 69, 0.28);
  --domain-soft: rgba(119, 207, 156, 0.18);
}

.domain-logic {
  --domain-accent: rgba(179, 123, 0, 0.3);
  --domain-soft: rgba(255, 201, 101, 0.18);
}

.domain-spatial {
  --domain-accent: rgba(51, 83, 156, 0.3);
  --domain-soft: rgba(152, 174, 229, 0.18);
}

.domain-header {
  margin: 0 0 0.85rem;
  padding: 0 0 0.42rem;
  text-align: center;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  letter-spacing: 0.01em;
  color: #2f4a4e;
  border-bottom: 3px solid var(--domain-accent);
}

.domain-games {
  display: grid;
  gap: 1.05rem;
}

.game-card {
  border: 0;
  border-radius: 1.8rem;
  padding: 1rem;
  background: var(--surface-lowest);
  animation: rise-in 360ms ease;
}

.game-card p {
  margin: 0 0 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.mixed-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: 1.28fr 1fr;
  gap: 1rem;
}

.mixed-card {
  position: relative;
  padding: clamp(1.1rem, 1.9vw, 1.8rem);
  padding-inline-end: clamp(1.1rem, 20vw, 13.5rem);
  border-radius: 2rem;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  gap: 0.4rem;
  overflow: hidden;
}

.mixed-card > :not(.mixed-card-art) {
  position: relative;
  z-index: 1;
}

.mixed-card-art {
  position: absolute;
  right: clamp(0.2rem, 2.2vw, 1.25rem);
  top: 50%;
  z-index: 0;
  width: clamp(7.2rem, 17vw, 12.4rem);
  max-width: 42%;
  transform: translateY(-50%) rotate(4deg);
  pointer-events: none;
  user-select: none;
}

.mixed-card-secondary .mixed-card-art {
  width: clamp(7.4rem, 16vw, 11.7rem);
  transform: translateY(-50%) rotate(-5deg);
}

.mixed-card h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3.5vw, 3.15rem);
  text-transform: uppercase;
}

.mixed-card-primary {
  color: #053f31;
  background: linear-gradient(138deg, #139574 0%, #68fed2 100%);
  box-shadow: 0 20px 36px rgba(0, 104, 81, 0.28);
}

.mixed-card-secondary {
  background: var(--surface-container-low);
  box-shadow: inset 0 0 0 2px rgba(94, 245, 202, 0.45);
}

.chip-label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.68rem;
  padding: 0.2rem 0.86rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: #24524a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.21em;
  text-transform: uppercase;
}

.mixed-stats {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  color: #2b3f42;
}

.mixed-description {
  margin: 0;
  font-size: 1.1rem;
  color: #2f4f54;
}

.mixed-action-btn {
  min-width: min(92%, 430px);
  margin-top: 0.58rem;
  text-transform: uppercase;
}

.mixed-start-btn {
  background: #0b6f59;
  color: #f4fffc;
  box-shadow: 0 10px 0 #004535;
}

.mixed-start-btn:hover {
  transform: translateY(4px);
  box-shadow: 0 6px 0 #004535;
}

.mixed-start-btn:active {
  transform: translateY(10px);
  box-shadow: 0 0 0 transparent;
}

.mixed-full-btn {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 8px 0 #004535;
}

.mixed-full-btn:hover {
  transform: translateY(4px);
  box-shadow: 0 4px 0 #004535;
}

.mixed-full-btn:active {
  transform: translateY(8px);
  box-shadow: 0 0 0 transparent;
}

.landing-overview {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.landing-hero {
  width: 100%;
  min-height: 330px;
  padding: clamp(1.2rem, 3vw, 2.4rem);
  border-radius: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  overflow: hidden;
  color: #06392e;
  background:
    radial-gradient(circle at 72% 28%, rgba(94, 245, 202, 0.18), transparent 34%),
    radial-gradient(circle at 98% 80%, rgba(255, 201, 101, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 251, 245, 0.82));
  box-shadow: inset 0 0 0 1px rgba(63, 69, 69, 0.1);
}

.landing-hero-copy {
  display: grid;
  justify-items: start;
  gap: 0.9rem;
  min-width: 0;
}

.landing-hero h2 {
  max-width: min(100%, 640px);
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 3.4rem);
  line-height: 1.04;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.landing-hero-art {
  position: relative;
  min-height: 270px;
  width: 100%;
}

.landing-hero-art img {
  display: block;
  pointer-events: none;
  user-select: none;
}

.landing-hero-brain,
.landing-hero-shapes {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(100%, 390px);
  transform: translate(-50%, -50%);
}

.landing-hero-shapes {
  width: min(112%, 440px);
}

.landing-hero .btn {
  width: min(100%, 340px);
  min-width: 0;
}

.landing-how {
  padding: 1rem;
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(116, 119, 119, 0.14);
}

.landing-info-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 1rem;
}

.landing-info-block {
  padding: 1rem;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(116, 119, 119, 0.14);
}

.landing-info-block h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  text-transform: uppercase;
}

.landing-info-block p {
  margin: 0;
  color: #354b4e;
  font-weight: 700;
  line-height: 1.4;
}

.landing-how h2 {
  margin: 0 0 0.8rem;
  text-transform: uppercase;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
}

.landing-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.landing-step {
  margin: 0;
  min-height: 5.4rem;
  padding: 0.9rem;
  border-radius: 1rem;
  background: var(--surface-lowest);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.78rem;
}

.landing-step img {
  width: clamp(3.5rem, 6vw, 4.9rem);
  aspect-ratio: 1;
  object-fit: contain;
}

.landing-step p {
  margin: 0;
  color: #354b4e;
  font-weight: 700;
  line-height: 1.35;
}

.landing-skill-list,
.landing-sample-grid {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.72rem;
}

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

.landing-skill-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.72rem;
}

.landing-skill-card img {
  width: 3.7rem;
  height: 3.7rem;
  object-fit: contain;
}

.landing-skill-card h3 {
  margin: 0;
  color: #243b3f;
  font-size: 1rem;
  line-height: 1.2;
}

.landing-sample-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-sample-card {
  margin: 0;
  min-width: 0;
}

.landing-sample-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10.5;
  border-radius: 0.8rem;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(44, 47, 47, 0.08);
}

.landing-sample-card figcaption {
  margin-top: 0.42rem;
  color: #22383b;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.progress-dashboard {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
  gap: 1rem;
}

.progress-panel {
  padding: clamp(0.9rem, 1.5vw, 1.2rem);
  border-radius: 1.35rem;
  background: var(--surface-lowest);
  min-width: 0;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(116, 119, 119, 0.14),
    0 12px 24px rgba(44, 47, 47, 0.05);
}

.progress-panel-header,
.skill-progress-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
  min-width: 0;
}

.progress-panel-header > div,
.skill-progress-header > h3 {
  min-width: 0;
}

.progress-panel h2,
.skill-progress-item h3 {
  margin: 0.22rem 0 0;
  text-transform: uppercase;
}

.progress-status {
  flex: 0 0 auto;
  max-width: 100%;
  padding: 0.34rem 0.62rem;
  border-radius: 999px;
  background: #e8ecfb;
  color: #273f78;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  white-space: normal;
}

.progress-count,
.progress-empty,
.progress-hint,
.progress-summary {
  margin: 0.7rem 0 0;
  color: #4e5d60;
  font-weight: 700;
}

.progress-summary {
  color: var(--success-strong);
}

.progress-hint {
  margin-top: 0.34rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.progress-metrics {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.progress-metric {
  min-height: 4.2rem;
  padding: 0.7rem;
  border-radius: 1rem;
  background: var(--surface-container-low);
  display: grid;
  align-content: center;
  gap: 0.28rem;
}

.progress-metric span {
  color: #5f6a6b;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.progress-metric strong {
  color: #22383b;
  font-family: "Plus Jakarta Sans", "Be Vietnam Pro", sans-serif;
  font-size: clamp(1rem, 1.55vw, 1.22rem);
  line-height: 1.1;
  white-space: normal;
}

.skill-breakdown-list {
  margin-top: 0.92rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.72rem;
}

.skill-progress-item {
  padding: 0.85rem;
  border-radius: 1.2rem;
  background: var(--surface-container-low);
  min-width: 0;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(116, 119, 119, 0.14);
}

.skill-progress-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  justify-content: start;
  column-gap: 0.68rem;
  row-gap: 0.48rem;
}

.skill-progress-icon {
  width: 3.15rem;
  height: 3.15rem;
  object-fit: contain;
}

.skill-progress-header .progress-status {
  grid-column: 2;
  justify-self: start;
}

.skill-progress-item .progress-metrics {
  grid-template-columns: 1fr;
  gap: 0.52rem;
}

.single-games-section {
  margin-top: 1.8rem;
}

.single-games-title {
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
}

.single-games-subtitle {
  margin: 0.5rem auto 0;
  max-width: 580px;
  text-align: center;
  color: #4e5d60;
  font-size: clamp(0.98rem, 1.32vw, 1.08rem);
  font-weight: 600;
  line-height: 1.4;
}

.single-games-underline {
  width: 3.2rem;
  height: 0.36rem;
  margin: 0.72rem auto 1.2rem;
  border-radius: 999px;
  background: var(--primary);
}

.game-tile {
  --tile-accent: transparent;
  position: relative;
  border: 0;
  border-radius: 1.7rem;
  padding: 1.2rem 1.05rem 1.46rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.34rem;
  overflow: hidden;
  box-shadow:
    0 14px 0 var(--tile-accent),
    0 16px 28px rgba(44, 47, 47, 0.08),
    0 2px 0 rgba(255, 255, 255, 0.75) inset;
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 220ms ease;
}

.game-tile:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 16px 0 var(--tile-accent),
    0 20px 34px rgba(44, 47, 47, 0.12),
    0 2px 0 rgba(255, 255, 255, 0.75) inset;
}

.tile-red {
  --tile-accent: var(--error-container);
}

.tile-mint {
  --tile-accent: var(--primary-container);
}

.tile-yellow {
  --tile-accent: var(--secondary-container);
}

.tile-orange {
  --tile-accent: var(--tertiary-container);
}

.tile-gold {
  --tile-accent: #a17900;
}

.tile-green {
  --tile-accent: var(--primary);
}

.tile-cobalt {
  --tile-accent: #80a7e6;
}

.tile-azure {
  --tile-accent: #e5a261;
}

.tile-indigo {
  --tile-accent: #7f92df;
}


.tile-icon-wrap {
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.tile-icon-wrap .material-symbols-outlined {
  font-size: 2rem;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.tile-red .tile-icon-wrap {
  background: rgba(251, 81, 81, 0.18);
  color: #b31b25;
}

.tile-mint .tile-icon-wrap {
  background: rgba(94, 245, 202, 0.25);
  color: var(--primary);
}

.tile-yellow .tile-icon-wrap {
  background: rgba(255, 201, 101, 0.3);
  color: #785500;
}

.tile-orange .tile-icon-wrap {
  background: rgba(255, 150, 81, 0.25);
  color: #823b00;
}

.tile-gold .tile-icon-wrap {
  background: rgba(161, 121, 0, 0.2);
  color: #7f6200;
}

.tile-green .tile-icon-wrap {
  background: rgba(0, 104, 81, 0.16);
  color: #006851;
}

.tile-cobalt .tile-icon-wrap {
  background: rgba(52, 96, 173, 0.18);
  color: #2d4f8e;
}

.tile-azure .tile-icon-wrap {
  background: rgba(229, 147, 83, 0.2);
  color: #8f4a12;
}

.tile-indigo .tile-icon-wrap {
  background: rgba(51, 83, 156, 0.18);
  color: #314b93;
}

/* Keep game-card colors aligned with the cognitive domain columns. */
.domain-processing .domain-games .game-tile:nth-child(1) {
  --tile-accent: #0f8d6c;
}

.domain-processing .domain-games .game-tile:nth-child(2) {
  --tile-accent: #46b091;
}

.domain-processing .domain-games .game-tile:nth-child(3) {
  --tile-accent: #7fceb5;
}

.domain-processing .tile-icon-wrap {
  background: rgba(35, 164, 125, 0.2);
  color: #0c7358;
}

.domain-logic .domain-games .game-tile:nth-child(1) {
  --tile-accent: #bc8215;
}

.domain-logic .domain-games .game-tile:nth-child(2) {
  --tile-accent: #d8a240;
}

.domain-logic .domain-games .game-tile:nth-child(3) {
  --tile-accent: #ebbc76;
}

.domain-logic .tile-icon-wrap {
  background: rgba(214, 154, 43, 0.2);
  color: #8b5e00;
}

.domain-spatial .domain-games .game-tile:nth-child(1) {
  --tile-accent: #567ebf;
}

.domain-spatial .domain-games .game-tile:nth-child(2) {
  --tile-accent: #759ad5;
}

.domain-spatial .domain-games .game-tile:nth-child(3) {
  --tile-accent: #9ab5e3;
}

.domain-spatial .tile-icon-wrap {
  background: rgba(74, 121, 202, 0.18);
  color: #2f579f;
}


.game-tile h4 {
  margin: 0.28rem 0 0;
  font-family: "Plus Jakarta Sans", "Be Vietnam Pro", sans-serif;
  font-weight: 800;
  font-size: clamp(1.16rem, 1.38vw, 1.36rem);
  text-transform: none;
  letter-spacing: -0.01em;
}

.tile-skill {
  margin: 0.12rem 0 0;
  color: #2f4b4f;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tile-description {
  margin: 0.24rem 0 0;
  min-height: 2.9em;
  color: #485658;
  font-size: 0.96rem;
  line-height: 1.38;
}

.tile-pill {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.84rem;
  border-radius: 999px;
  background: #dce3e2;
  color: #5f6a6b;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.game-select-btn {
  width: 100%;
}

.game-tile-hit {
  position: static;
  z-index: auto;
  border: 0;
  border-radius: 999px;
  width: auto;
  min-width: 92px;
  min-height: 2.2rem;
  margin-top: 0.34rem;
  padding: 0.42rem 0.9rem;
  background: #0b6f59;
  color: #ffffff;
  font-family: "Plus Jakarta Sans", "Be Vietnam Pro", sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 5px 0 #004535;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.game-tile-hit:hover {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #004535;
}

.game-tile-hit:active {
  transform: translateY(5px);
  box-shadow: 0 0 0 transparent;
}

.game-tile-hit:focus-visible {
  outline: 3px solid rgba(0, 104, 81, 0.45);
  outline-offset: 3px;
}

.menu-footer {
  margin-top: 1.6rem;
  padding: 1rem 1.4rem;
  background: #dde3e2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.app-footer {
  border-radius: 1.8rem 1.8rem 0 0;
  width: min(100%, 1920px);
}

body:not(.menu-active) .app-footer {
  display: none;
}

.footer-links {
  display: inline-flex;
  gap: 0.7rem;
}

.footer-links a {
  border: 0;
  background: transparent;
  color: #4e5d60;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.footer-links a:hover {
  color: #2a3d41;
}

.footer-copy {
  margin: 0;
  color: #435255;
  font-size: 0.95rem;
  font-weight: 700;
}

.menu-footer .brand-name {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.game-header {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.mode-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--game-accent-strong);
  margin-bottom: 0.08rem;
}

#game-name {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--game-accent-strong);
}

.hud {
  margin-top: 0.42rem;
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
}

.session-star-bar {
  display: block;
}

.session-star-meter {
  display: block;
  width: 100%;
  height: 0.6rem;
  background: rgba(var(--game-accent-rgb), 0.1);
  border: 1px solid rgba(var(--game-accent-rgb), 0.28);
  border-radius: 999px;
  overflow: hidden;
}

.session-star-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--game-accent), var(--game-accent-strong));
  transition: width 220ms ease;
}

.session-star-text {
  margin: 0.06rem 0 0;
  min-width: 0;
  text-align: left;
  color: var(--game-accent-strong);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.question-wrap {
  padding: 0.55rem 0 0.4rem;
  text-align: center;
  position: relative;
}

.operation {
  margin: 0;
  font-size: clamp(2.1rem, 7.3vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: pre-wrap;
}

.operation.story-mode {
  font-size: clamp(1.28rem, 3.6vw, 2rem);
  line-height: 1.28;
  letter-spacing: 0.01em;
}

.operation.matrix-mode {
  font-size: clamp(1.2rem, 3.2vw, 1.65rem);
  margin-bottom: 0.3rem;
}

.operation.analogy-mode {
  font-size: clamp(1.15rem, 3.1vw, 1.75rem);
  margin-bottom: 0.35rem;
}

.operation.memory-order-mode {
  font-size: clamp(1.1rem, 2.9vw, 1.55rem);
  margin-bottom: 0.35rem;
}

.operation.visual-completion-mode {
  font-size: clamp(1.15rem, 3vw, 1.68rem);
  margin-bottom: 0.35rem;
}

.operation.visual-composition-mode {
  font-size: clamp(1.12rem, 2.85vw, 1.62rem);
  margin-bottom: 0.34rem;
}

.matrix-board {
  display: none;
  width: min(320px, 80%);
  margin: 0.2rem auto 0;
  padding: 0.2rem;
  border-radius: 14px;
  background: rgba(var(--game-accent-rgb), 0.08);
  border: 2px solid rgba(var(--game-accent-rgb), 0.24);
  grid-template-columns: repeat(3, minmax(52px, 1fr));
  gap: 0.2rem;
}

.matrix-board.active {
  display: grid;
}

.analogy-board {
  display: none;
  width: min(760px, 99%);
  margin: 0.25rem auto 0;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: rgba(var(--game-accent-rgb), 0.08);
  border: 2px solid rgba(var(--game-accent-rgb), 0.24);
}

.analogy-board.active {
  display: block;
}

.spatial-rotation-board {
  display: none;
  width: min(760px, 99%);
  margin: 0.25rem auto 0;
  padding: 0.65rem 0.8rem;
  border-radius: 14px;
  background: rgba(var(--game-accent-rgb), 0.08);
  border: 2px solid rgba(var(--game-accent-rgb), 0.24);
}

.spatial-rotation-board.active {
  display: block;
}

.visual-completion-board {
  display: none;
  width: min(760px, 99%);
  margin: 0.25rem auto 0;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: rgba(var(--game-accent-rgb), 0.08);
  border: 2px solid rgba(var(--game-accent-rgb), 0.24);
}

.visual-completion-board.active {
  display: block;
}

.visual-composition-board {
  display: none;
  width: min(760px, 99%);
  margin: 0.25rem auto 0;
  padding: 0.68rem 0.8rem;
  border-radius: 14px;
  background: rgba(var(--game-accent-rgb), 0.08);
  border: 2px solid rgba(var(--game-accent-rgb), 0.24);
}

.visual-composition-board.active {
  display: block;
}

.visual-completion-layout {
  display: grid;
  place-items: center;
}

.visual-completion-main-frame {
  width: min(420px, 100%);
  border-radius: 12px;
  border: 1px solid #c5d8f0;
  background: #f6faff;
  padding: 0.45rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.visual-completion-main-image {
  width: 100%;
  display: block;
  border-radius: 10px;
  background: #f8fbff;
}

.visual-composition-layout {
  display: grid;
  place-items: center;
}

.visual-composition-input-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.3rem;
}

.visual-composition-input-card {
  width: min(152px, 30vw);
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: 1px solid #c0d0e9;
  background: #f7fbff;
  padding: 0.26rem;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.visual-composition-operator {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}

.visual-composition-result-card {
  width: min(118px, 24vw);
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: 1px dashed #90a6c8;
  background: #f6faff;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.visual-composition-result-mark {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  color: #59739b;
}

.visual-composition-structure-svg {
  max-width: 100%;
  height: auto;
  display: block;
}

.visual-composition-structure-fallback {
  font-size: 1.55rem;
  font-weight: 900;
  color: #47638a;
}

.spatial-rotation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(94px, 112px) minmax(0, 1.4fr);
  grid-template-rows: auto auto;
  row-gap: 0.5rem;
}

.spatial-rotation-example {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  justify-self: start;
}

.spatial-rotation-example-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.spatial-rotation-example-shape {
  --shape-size: 58px;
  padding: 4px;
  border-radius: 9px;
  transform-origin: center center;
  will-change: transform;
}

.spatial-rotation-example-shape.spatial-rotation-animating {
  transition-property: transform;
}

.spatial-rotation-puzzle-layout {
  grid-column: 1 / 4;
  grid-row: 2 / 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(94px, 112px) minmax(0, 1.4fr);
  align-items: center;
  gap: 0.55rem;
}

.spatial-rotation-reference {
  display: grid;
  place-items: center;
}

.spatial-rotation-reference-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.spatial-rotation-reference-shape {
  transform-origin: center center;
  will-change: transform;
}

.spatial-rotation-reference-shape.spatial-rotation-animating {
  transition-property: transform;
}

.spatial-rotation-replay-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #9fb5cb;
  background: #f4f9ff;
  color: #2d4f70;
  font-size: 16px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(31, 55, 80, 0.14);
}

.spatial-rotation-replay-btn:hover {
  background: #e7f2ff;
}

.spatial-rotation-replay-btn:active {
  transform: translateY(1px);
}

.spatial-rotation-cue {
  width: 100%;
  aspect-ratio: 14 / 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
}

.spatial-rotation-cue-svg {
  width: min(112px, 100%);
  height: auto;
}

.spatial-rotation-turn-count {
  min-width: 64px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #b9ccdf;
  background: #eef5fc;
  color: #35516f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-align: center;
}

.spatial-rotation-cue-svg .spatial-rotation-cue-tick {
  fill: #deebf7;
  stroke: #6a86a1;
  stroke-width: 1;
  opacity: 0.86;
}

.spatial-rotation-cue-svg .spatial-rotation-cue-tick.is-active {
  fill: #b8cee3;
}

.spatial-rotation-cue-svg .spatial-rotation-cue-tick.is-complete {
  fill: #355a7f;
  stroke: #2a4763;
}

.spatial-rotation-cue-svg.subtle-steps .spatial-rotation-cue-tick {
  opacity: 0.48;
}

.spatial-rotation-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(88px, 1fr));
  gap: 0.42rem;
}

.spatial-rotation-options.pending-cue {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.memory-order-board {
  display: none;
  width: min(760px, 99%);
  margin: 0.25rem auto 0;
  padding: 0.7rem 0.85rem 0.8rem;
  border-radius: 14px;
  background: rgba(var(--game-accent-rgb), 0.08);
  border: 2px solid rgba(var(--game-accent-rgb), 0.24);
}

.memory-order-board.active {
  display: block;
}

.memory-order-title {
  margin: 0;
  color: #2f455f;
  font-size: 1.34rem;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.01em;
}

.memory-order-sequence {
  margin-top: 0.62rem;
  display: flex;
  justify-content: center;
  gap: 0.52rem;
  flex-wrap: wrap;
}

.memory-present-item {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: memory-present-pulse 760ms ease-in-out infinite alternate;
}

.memory-present-item.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.memory-order-timer {
  margin: 0.65rem auto 0;
  width: min(430px, 88%);
  height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(var(--game-accent-rgb), 0.28);
  overflow: hidden;
  background: rgba(var(--game-accent-rgb), 0.12);
}

.memory-order-timer-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--game-accent), rgba(var(--game-accent-rgb), 0.62));
  transform-origin: left center;
}

.memory-order-timer-bar.running {
  animation-name: memory-timer-drain;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

.memory-order-ready-button {
  display: block;
  margin: 0.62rem auto 0;
  min-width: 112px;
  min-height: 38px;
  padding: 0.42rem 0.9rem;
  border: 2px solid rgba(var(--game-accent-rgb), 0.36);
  border-radius: 999px;
  background: #ffffff;
  color: #2f455f;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(24, 43, 66, 0.08);
  transition: transform 120ms ease, border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.memory-order-ready-button:hover,
.memory-order-ready-button:focus-visible {
  border-color: var(--game-accent);
  background: rgba(var(--game-accent-rgb), 0.1);
  box-shadow: 0 8px 16px rgba(24, 43, 66, 0.12);
}

.memory-order-ready-button:active {
  transform: translateY(1px) scale(0.98);
}

.memory-order-helper {
  margin: 0.5rem 0 0.28rem;
  color: #4e6178;
  font-size: 0.83rem;
  font-weight: 700;
  text-align: center;
}

.memory-order-token {
  width: 78px;
  height: 78px;
  border-radius: 14px;
  border: 2px solid rgba(var(--game-accent-rgb), 0.26);
  background: #ffffff;
  box-shadow: 0 5px 12px rgba(24, 43, 66, 0.08);
  font-size: 2.35rem;
  line-height: 1;
  display: grid;
  place-items: center;
  user-select: none;
  transition: transform 120ms ease, opacity 120ms ease, border-color 120ms ease, background-color 120ms ease;
}

.memory-order-token[draggable="true"] {
  cursor: grab;
  touch-action: none;
}

.memory-order-token.dragging {
  opacity: 0.55;
  transform: scale(0.95);
}

.memory-order-token-ghost {
  opacity: 0.92;
  transform: translate(-50%, -50%) scale(1.06) !important;
  box-shadow: 0 14px 24px rgba(24, 43, 66, 0.22);
}

.memory-order-token.dimmed {
  opacity: 0.45;
  filter: grayscale(0.7);
  transform: scale(0.95);
}

.memory-order-slots {
  margin-top: 0.45rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 0.5rem;
}

.memory-order-slot {
  min-height: 88px;
  border: 2px dashed rgba(var(--game-accent-rgb), 0.45);
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(var(--game-accent-rgb), 0.04);
  transition: border-color 120ms ease, background-color 120ms ease, transform 120ms ease;
}

.memory-order-slot.drop-target,
.memory-order-pool.drop-target {
  border-color: var(--game-accent);
  background: rgba(var(--game-accent-rgb), 0.14);
}

.memory-order-slot.incorrect {
  border-color: #e03131;
  background: #ffe5e5;
}

.memory-order-slot.correct {
  border-color: var(--success-border);
  background: var(--success-soft);
}

.memory-order-board.reveal-failed .memory-order-slot.correct {
  animation: answer-glow 800ms ease;
}

.memory-slot-placeholder {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(var(--game-accent-rgb), 0.16);
}

.memory-order-pool {
  min-height: 100px;
  border: 2px dashed rgba(var(--game-accent-rgb), 0.38);
  border-radius: 12px;
  background: #ffffff;
  padding: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

@keyframes memory-timer-drain {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

@keyframes memory-present-pulse {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.035);
  }
}

.analogy-rows {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.analogy-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.analogy-set {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.analogy-relation {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #3f5268;
  background: #ffffff;
  border: 2px solid rgba(var(--game-accent-rgb), 0.24);
  border-radius: 14px;
}

.analogy-relation-icon {
  width: 30px;
  height: 30px;
}

.matrix-cell {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: #ffffff;
  border: 2px solid rgba(var(--game-accent-rgb), 0.24);
  display: grid;
  place-items: center;
  position: relative;
}

.matrix-cell.missing {
  border-style: dashed;
  border-color: #9fb1c5;
  color: #4f5f72;
  font-weight: 700;
  font-size: 2rem;
}

.matrix-cell .tile-visual {
  width: 92%;
  height: 92%;
}

.tile-visual.pattern-tile-visual {
  display: grid;
  place-items: center;
}

.pattern-matrix-tile {
  width: 100%;
  height: 100%;
  padding: var(--pattern-grid-padding, 10%);
  display: grid;
  grid-template-columns: repeat(var(--pattern-grid-size, 3), minmax(0, 1fr));
  gap: var(--pattern-grid-gap, 7%);
}

.pattern-matrix-inner-cell {
  border-radius: 4px;
  background: #eef3f8;
  border: 1px solid #d5e0ea;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.pattern-matrix-inner-cell.filled {
  background: #24384d;
  border-color: #24384d;
  box-shadow: 0 2px 4px rgba(25, 42, 62, 0.18);
}

.feedback {
  height: 1.4rem;
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-weight: 700;
}

.feedback.good {
  color: var(--success-strong);
}

.feedback.bad {
  color: var(--wrong);
}

.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 0.5rem;
}

.post-answer-actions {
  margin-top: 0.55rem;
  min-height: 2.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-answer-actions #next-question-btn {
  margin-left: auto;
}

.btn.skip-btn {
  margin-left: 0;
  min-width: unset;
  margin-top: 1.25rem;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  border: none;
  padding: 0 0.5rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn.skip-btn:hover {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  transform: none;
}

.btn.skip-btn:active {
  transform: scale(0.98);
}

.btn.link-action-btn {
  min-width: unset;
  margin-top: 1.25rem;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  border: none;
  padding: 0 0.5rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn.link-action-btn:hover {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  transform: none;
}

.btn.link-action-btn:active {
  transform: scale(0.98);
}

.btn.home-link-btn {
  margin-left: auto;
}

.choice {
  width: 100%;
  background: rgba(var(--game-accent-rgb), 0.05);
  border: 2px solid rgba(var(--game-accent-rgb), 0.26);
  color: var(--ink);
  min-height: 66px;
  font-size: 1.25rem;
  font-weight: 700;
}

.choice.matrix-choice {
  min-height: 82px;
  padding: 0.2rem;
  display: grid;
  place-items: center;
}

.choice.analogy-choice {
  min-height: 128px;
  padding: 0.55rem;
}

.choice.spatial-rotation-choice {
  min-height: 90px;
  padding: 0.22rem;
  display: grid;
  place-items: center;
}

.choice.visual-completion-choice {
  min-height: 96px;
  padding: 0.28rem;
  display: grid;
  place-items: center;
}

.choice.visual-composition-choice {
  min-height: 104px;
  padding: 0.24rem;
  display: grid;
  place-items: center;
}

.choices.matrix-mode {
  gap: 0.4rem;
}

.choices.matrix-mode .choice.matrix-choice {
  min-height: 70px;
  padding: 0.1rem;
}

.choices.matrix-mode .tile-visual {
  width: 70px;
  height: 70px;
}

.choices.matrix-mode .tile-visual.pattern-tile-visual {
  width: 78px;
  height: 78px;
}

.choices.analogy-mode .choice.analogy-choice {
  min-height: 122px;
}

.choices.visual-completion-mode {
  gap: 0.45rem;
}

.choices.visual-composition-mode {
  gap: 0.42rem;
}

.spatial-rotation-option-visual {
  width: 100%;
  min-height: 70px;
  display: grid;
  place-items: center;
}

.visual-completion-option-visual {
  width: min(156px, 100%);
  aspect-ratio: var(--visual-completion-option-aspect, 1 / 1);
  border-radius: 10px;
  border: 1px solid #bcd0e8;
  background: #f7fbff;
  padding: 0.22rem;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.visual-completion-option-visual.is-diamond {
  width: min(146px, 100%);
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.visual-completion-option-visual.is-empty {
  font-size: 1.6rem;
  font-weight: 900;
  color: #496488;
}

.visual-completion-option-image {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px;
  background: #fafdff;
  object-fit: cover;
}

.visual-composition-option-visual {
  width: min(122px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 1px solid #bacbe6;
  background: #f7fbff;
  padding: 0.15rem;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.visual-composition-option-visual.is-empty {
  font-size: 1.62rem;
  font-weight: 900;
  color: #466285;
}

.spatial-shape {
  --shape-size: 112px;
  width: var(--shape-size);
  height: var(--shape-size);
  border-radius: 12px;
  border: 1px solid #d2dfec;
  background: #fdfefe;
  display: grid;
  place-items: center;
  padding: 7px;
}

.spatial-shape.compact {
  --shape-size: 68px;
  border-radius: 10px;
  padding: 5px;
}

.spatial-shape-grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(var(--sr-cols), minmax(0, 1fr));
  grid-template-rows: repeat(var(--sr-rows), minmax(0, 1fr));
  gap: 3px;
}

.spatial-shape-cell {
  display: block;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.spatial-shape-cell.icon-mode {
  background: transparent !important;
  border: none !important;
  box-shadow: none;
  overflow: visible;
}

.spatial-shape-cell-icon-token {
  width: 92%;
  height: 92%;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f7fbff;
  border: 1px solid #c7d9eb;
  font-size: 1.02rem;
  line-height: 1;
  transform: translateY(0.4px);
  pointer-events: none;
  color: #25415d;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.spatial-shape-cell-icon-token.anchor {
  background: #fff3e8;
  border-color: #efbc90;
  color: #8c4f22;
  font-size: 1.08rem;
}

.spatial-shape.compact .spatial-shape-cell-icon-token {
  font-size: 0.84rem;
}

.spatial-shape.compact .spatial-shape-cell-icon-token.anchor {
  font-size: 0.9rem;
}

.concept-tile {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.34rem;
  min-width: 146px;
}

.concept-tile.compact {
  min-width: 116px;
}

.concept-image-wrap {
  width: 106px;
  height: 106px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #d4dfec;
  display: grid;
  place-items: center;
}

.concept-tile.compact .concept-image-wrap {
  width: 78px;
  height: 78px;
}

.concept-image {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.concept-fallback {
  font-size: 1.05rem;
  font-weight: 700;
  color: #4f5f72;
}

.concept-label {
  font-size: 1rem;
  font-weight: 700;
  color: #25364a;
  line-height: 1.1;
  text-transform: capitalize;
}

.concept-tile.compact .concept-label {
  font-size: 0.92rem;
}

.choice:hover {
  filter: none;
  background: rgba(var(--game-accent-rgb), 0.09);
}

.choice:disabled,
.choice:disabled:hover,
.choice:disabled:active {
  transform: none;
  cursor: not-allowed;
}

.choice.correct {
  background: var(--success-soft);
  border-color: var(--success-border);
}

.choice.reveal-correct {
  animation: answer-glow 820ms ease;
}

.choice.reveal-correct .matrix-cell,
.choice.reveal-correct .concept-image-wrap,
.choice.reveal-correct .visual-completion-option-visual,
.choice.reveal-correct .visual-composition-option-visual {
  border-color: var(--success-border);
}

.choice.incorrect {
  background: #ffe5e5;
  border-color: #ffb6b6;
  opacity: 0.78;
}

.choice.dimmed {
  opacity: 0.35;
  filter: grayscale(0.7);
}

.star-burst {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.26rem 0.6rem;
  border-radius: 999px;
  font-family: "Be Vietnam Pro", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.35rem, 4vw, 2.1rem);
  letter-spacing: 0.06em;
  color: #f08c00;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(35, 52, 72, 0.16);
  pointer-events: none;
  z-index: 4;
  animation: star-pop 900ms ease forwards;
}

.big-score {
  margin: 0.7rem 0;
  font-size: clamp(3rem, 9vw, 4.4rem);
  line-height: 1;
  color: var(--game-accent);
  font-family: "Be Vietnam Pro", "Plus Jakarta Sans", sans-serif;
}

.end-actions {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.session-summary {
  margin: 0.5rem 0 0.7rem;
  padding: 0.65rem 0.8rem;
  border-radius: 14px;
  background: #f4f8fa;
  border: 1px solid #d4dfec;
}

.session-summary p {
  margin: 0.28rem 0;
  color: #24384d;
}

.summary-star-bar {
  margin: 0.18rem 0 0.46rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.summary-star-meter {
  flex: 1;
  height: 0.66rem;
  background: rgba(var(--game-accent-rgb), 0.1);
  border: 1px solid rgba(var(--game-accent-rgb), 0.28);
  border-radius: 999px;
  overflow: hidden;
}

.summary-star-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--game-accent), var(--game-accent-strong));
  transition: width 220ms ease;
}

.summary-star-text {
  min-width: 84px;
  text-align: right;
  color: var(--game-accent-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.summary-breakdown {
  margin-top: 0.5rem;
  padding-top: 0.45rem;
  border-top: 1px dashed #c8d5e4;
}

.summary-breakdown p {
  margin: 0.24rem 0;
  color: #24384d;
}

@media (min-width: 760px) {
  .app {
    width: min(1160px, 95vw);
  }

  .card {
    padding: 1.55rem;
  }

  .operation {
    font-size: clamp(2.55rem, 5.8vw, 4.35rem);
  }

  .operation.story-mode {
    font-size: clamp(1.45rem, 2.6vw, 2.25rem);
  }

  .operation.analogy-mode {
    font-size: clamp(1.35rem, 3.1vw, 2.05rem);
  }

  .matrix-board {
    width: min(390px, 84%);
    grid-template-columns: repeat(3, minmax(58px, 1fr));
  }

  .matrix-cell .tile-visual {
    width: 94%;
    height: 94%;
  }

  .choice {
    min-height: 84px;
    font-size: 1.45rem;
  }

  .choice.analogy-choice {
    min-height: 152px;
    padding: 0.6rem;
  }

  .choice.analogy-choice .concept-tile.compact {
    min-width: 132px;
  }

  .choice.analogy-choice .concept-tile.compact .concept-image-wrap {
    width: 94px;
    height: 94px;
  }

  .choice.analogy-choice .concept-tile.compact .concept-image {
    width: 72px;
    height: 72px;
  }

  .choice.visual-completion-choice {
    min-height: 112px;
  }

  .choice.visual-composition-choice {
    min-height: 116px;
  }

  .visual-completion-main-frame {
    width: min(450px, 100%);
  }

  .memory-order-board {
    padding: 0.84rem 1.08rem 0.96rem;
  }

  .memory-order-title {
    font-size: 1.42rem;
  }

  .memory-order-token {
    width: 88px;
    height: 88px;
    font-size: 2.55rem;
  }

  .memory-order-slots {
    grid-template-columns: repeat(auto-fit, minmax(98px, 1fr));
    gap: 0.62rem;
  }

  .memory-order-slot {
    min-height: 102px;
  }

  .memory-order-pool {
    min-height: 122px;
    padding: 0.72rem;
    gap: 0.6rem;
  }
}

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

  .mixed-card {
    min-height: 244px;
  }

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

  .progress-dashboard,
  .landing-steps,
  .landing-info-grid {
    grid-template-columns: 1fr;
  }

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

  .skill-breakdown-list {
    grid-template-columns: 1fr;
  }

  .menu-footer {
    flex-wrap: wrap;
  }
}

#confetti-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 9;
}

.confetti {
  position: absolute;
  width: 9px;
  height: 14px;
  top: -16px;
  opacity: 0.95;
  animation: fall 850ms linear forwards;
}

.shake {
  animation: shake 340ms ease;
}

@keyframes fall {
  to {
    transform: translate3d(var(--x-travel), 110vh, 0) rotate(680deg);
    opacity: 0;
  }
}

@keyframes drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(20px, 18px);
  }
}

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

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  65% {
    transform: translateX(6px);
  }
}

@keyframes star-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.62);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -88%) scale(1.08);
  }
}

@keyframes answer-glow {
  0% {
    box-shadow: 0 0 0 rgba(var(--success-rgb), 0);
  }
  30% {
    box-shadow: 0 0 0 8px rgba(var(--success-rgb), 0.18);
  }
  100% {
    box-shadow: 0 0 0 rgba(var(--success-rgb), 0);
  }
}

@media (max-height: 820px) {
  .card {
    padding: 0.85rem;
  }

  .matrix-board {
    width: min(288px, 78%);
    grid-template-columns: repeat(3, minmax(48px, 1fr));
  }

  .choice.matrix-choice {
    min-height: 72px;
  }

  .choices.matrix-mode .choice.matrix-choice {
    min-height: 64px;
  }

  .choices.matrix-mode .tile-visual {
    width: 62px;
    height: 62px;
  }

  .choices.matrix-mode .tile-visual.pattern-tile-visual {
    width: 70px;
    height: 70px;
  }

  .choice.visual-completion-choice {
    min-height: 84px;
  }

  .choice.visual-composition-choice {
    min-height: 88px;
  }

  .visual-completion-option-visual {
    width: min(102px, 100%);
  }

  .visual-completion-option-visual.is-diamond {
    width: min(98px, 100%);
  }

  .visual-composition-option-visual {
    width: min(104px, 100%);
  }

  .memory-order-token {
    width: 70px;
    height: 70px;
    font-size: 2.15rem;
  }

  .spatial-shape {
    --shape-size: 96px;
  }

  .spatial-shape.compact {
    --shape-size: 62px;
  }
}

@media (max-width: 520px) {
  .top-app-shell {
    width: 95vw;
    padding: 0.75rem 0.1rem;
  }

  .top-app-actions {
    gap: 0.35rem;
  }

  .auth-actions {
    gap: 0.3rem;
  }

  .auth-status {
    max-width: 7.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-inline: 0.58rem;
  }

  .auth-notice {
    top: 4.4rem;
    grid-template-columns: 1fr auto;
    gap: 0.56rem;
    font-size: 0.84rem;
  }

  .auth-notice-action {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .auth-btn span:last-child {
    display: none;
  }

  #auth-email-btn span:last-child {
    display: inline;
    max-width: 5.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .auth-btn {
    width: 2.35rem;
    justify-content: center;
    padding: 0.4rem;
  }

  #auth-email-btn {
    width: auto;
    max-width: 8.2rem;
    padding-inline: 0.52rem;
  }

  .auth-user-label {
    max-width: 4.5rem;
  }

  .auth-user {
    max-width: 8.9rem;
    gap: 0.24rem;
    padding-left: 0.58rem;
  }

  .auth-menu-trigger {
    max-width: 3rem;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
    padding-inline: 0.42rem;
  }

  .lang-globe {
    display: none;
  }

  .brand-name {
    font-size: clamp(1.75rem, 9vw, 2.1rem);
  }

  .app {
    width: 94vw;
  }

  body.menu-active .app,
  body:not(.menu-active) .app {
    margin-top: 6.1rem;
  }

  .card {
    padding: 1rem;
  }

  .mixed-card {
    min-height: 220px;
    border-radius: 26px;
    padding-inline-end: 1rem;
    align-items: center;
    text-align: center;
  }

  .mixed-card-art,
  .mixed-card-secondary .mixed-card-art {
    position: static;
    order: -1;
    width: 7.2rem;
    max-width: 44%;
    transform: none;
    margin-bottom: 0.2rem;
  }

  .landing-hero {
    min-height: auto;
    border-radius: 1.45rem;
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .landing-hero h2 {
    max-width: 100%;
    font-size: clamp(1.35rem, 7.4vw, 2.1rem);
  }

  .landing-hero-art {
    min-height: 205px;
    order: -1;
  }

  .landing-hero-brain {
    width: min(96%, 310px);
  }

  .landing-hero-shapes {
    width: min(108%, 350px);
  }

  .landing-hero .btn {
    width: 100%;
  }

  .landing-step {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

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

  .progress-metrics {
    grid-template-columns: 1fr;
  }

  .progress-panel-header,
  .skill-progress-header {
    display: grid;
  }

  .progress-status {
    max-width: 100%;
    width: fit-content;
  }

  .single-games-title {
    font-size: clamp(1.75rem, 9vw, 2.25rem);
  }

  .single-games-subtitle {
    font-size: 0.94rem;
  }

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

  .domain-column {
    padding: 0.82rem 0.64rem 0.56rem;
  }

  .spatial-rotation-layout {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .spatial-rotation-example {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    justify-self: center;
  }

  .spatial-rotation-puzzle-layout {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .spatial-rotation-cue {
    width: min(120px, 40vw);
    margin: 0 auto;
  }

  .spatial-rotation-options {
    grid-template-columns: repeat(2, minmax(92px, 1fr));
  }

  .age-options,
  .difficulty-options {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 0.32rem;
    padding: 0.42rem 0.46rem 0.78rem;
  }

  .age-btn,
  .difficulty-btn {
    flex: 1 1 30%;
    min-width: 0;
    padding: 0.55rem 0.3rem;
    font-size: 0.85rem;
  }

  .menu-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }

  #game-name {
    font-size: 0.82rem;
  }

  .mode-title {
    font-size: 0.8rem;
  }

  .session-star-text {
    min-width: 0;
    font-size: 0.82rem;
  }

  .question-wrap {
    padding: 0.4rem 0 0.28rem;
  }

  .operation {
    font-size: clamp(1.88rem, 8.2vw, 2.45rem);
  }

  .operation.story-mode {
    font-size: clamp(1.08rem, 4.8vw, 1.42rem);
    line-height: 1.3;
  }

  .operation.analogy-mode {
    font-size: clamp(1rem, 4.7vw, 1.28rem);
    margin-bottom: 0.24rem;
  }

  .operation.memory-order-mode {
    font-size: clamp(0.96rem, 4.3vw, 1.16rem);
    line-height: 1.23;
    margin-bottom: 0.24rem;
  }

  .operation.visual-completion-mode {
    font-size: clamp(0.98rem, 4.4vw, 1.2rem);
    margin-bottom: 0.24rem;
  }

  .operation.visual-composition-mode {
    font-size: clamp(0.97rem, 4.2vw, 1.18rem);
    margin-bottom: 0.24rem;
  }

  .skip-btn {
    min-width: 84px;
  }

  .choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.42rem;
  }

  #game-screen.active .choices {
    margin-top: 0.38rem;
  }

  .choice {
    min-height: 62px;
    font-size: 1.15rem;
  }

  .choices.matrix-mode .choice.matrix-choice {
    min-height: 68px;
    padding: 0.16rem;
  }

  .choices.matrix-mode .tile-visual {
    width: 66px;
    height: 66px;
  }

  .choices.matrix-mode .tile-visual.pattern-tile-visual {
    width: 72px;
    height: 72px;
  }

  .visual-composition-input-row {
    gap: 0.16rem;
  }

  .visual-composition-input-card {
    width: min(104px, 24vw);
    padding: 0.16rem;
  }

  .visual-composition-operator {
    width: 22px;
    height: 22px;
  }

  .visual-composition-result-card {
    width: min(88px, 20vw);
  }

  .choice.analogy-choice {
    min-height: 116px;
    padding: 0.45rem;
  }

  .choice.analogy-choice .concept-tile.compact {
    min-width: 90px;
  }

  .choice.analogy-choice .concept-tile.compact .concept-image-wrap {
    width: 70px;
    height: 70px;
  }

  .choice.analogy-choice .concept-tile.compact .concept-image {
    width: 56px;
    height: 56px;
  }

  .choice.visual-completion-choice {
    min-height: 88px;
    padding: 0.22rem;
  }

  .choice.visual-composition-choice {
    min-height: 90px;
    padding: 0.2rem;
  }

  .visual-completion-main-frame {
    width: min(286px, 100%);
    padding: 0.32rem;
  }

  .visual-completion-option-visual {
    width: min(94px, 100%);
    padding: 0.16rem;
  }

  .visual-completion-option-visual.is-diamond {
    width: min(90px, 100%);
    padding: 0;
  }

  .visual-composition-option-visual {
    width: min(96px, 100%);
    padding: 0.14rem;
  }

  .analogy-row {
    gap: 0.35rem;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .analogy-relation {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 11px;
  }

  .analogy-relation-icon {
    width: 24px;
    height: 24px;
  }

  .concept-tile {
    min-width: 0;
    width: 92px;
  }

  .concept-tile.compact {
    min-width: 0;
    width: 86px;
  }

  .concept-image-wrap {
    width: 74px;
    height: 74px;
  }

  .concept-tile.compact .concept-image-wrap {
    width: 68px;
    height: 68px;
  }

  .concept-image {
    width: 54px;
    height: 54px;
  }

  .memory-order-board {
    padding: 0.58rem 0.62rem 0.68rem;
  }

  .memory-order-title {
    font-size: 1rem;
  }

  .memory-order-helper {
    margin: 0.42rem 0 0.22rem;
    font-size: 0.75rem;
  }

  .memory-order-timer {
    margin-top: 0.52rem;
    height: 10px;
  }

  .memory-order-ready-button {
    min-width: 96px;
    min-height: 34px;
    margin-top: 0.5rem;
    padding: 0.36rem 0.74rem;
    font-size: 0.78rem;
  }

  .memory-order-token {
    width: 50px;
    height: 50px;
    font-size: 1.55rem;
  }

  .memory-order-slots {
    grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
    gap: 0.32rem;
  }

  .memory-order-slot {
    min-height: 60px;
  }

  .memory-order-pool {
    min-height: 78px;
    padding: 0.45rem;
    gap: 0.35rem;
  }

  .post-answer-actions {
    margin-top: 0.4rem;
  }

  .end-actions .btn {
    width: 100%;
  }
}

/* Homepage redesign */
body.menu-active {
  background: #f6f7f8;
  padding-bottom: 1.2rem;
}

body[data-auth-state="loading"] .auth-sign-in-btn,
body[data-auth-state="loading"] .auth-user {
  display: none;
}

body[data-auth-state="loading"] [data-auth-visibility],
body[data-auth-state="anonymous"] [data-auth-visibility="logged-in"],
body[data-auth-state="authenticated"] [data-auth-visibility="logged-out"] {
  display: none !important;
}

body[data-auth-state="authenticated"] .auth-sign-in-btn,
body[data-auth-state="anonymous"] .auth-user {
  display: none;
}

.top-app-bar {
  top: 1.1rem;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.top-app-shell {
  width: min(1196px, calc(100vw - 2rem));
  min-height: 4.6rem;
  padding: 0.75rem 1.35rem;
  border: 1px solid rgba(28, 46, 45, 0.1);
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 34px rgba(18, 31, 34, 0.06);
}

.brand-mark {
  width: 1.86rem;
  height: 1.86rem;
  box-shadow: none;
}

.brand-mark-icon {
  font-size: 1.02rem;
}

.brand-name {
  font-size: clamp(1.45rem, 2vw, 1.72rem);
  letter-spacing: 0;
}

.top-app-actions {
  gap: 0.7rem;
}

.auth-sign-in-btn {
  min-height: 2.3rem;
  padding: 0.48rem 1.12rem;
  border: 1px solid #087461;
  background: #ffffff;
  color: #076351;
  box-shadow: none;
}

.auth-user {
  min-height: 2.36rem;
  padding: 0.18rem 0.28rem 0.18rem 0.25rem;
  gap: 0.4rem;
  border: 0;
  background: #f7f8f7;
  box-shadow: inset 0 0 0 1px rgba(42, 70, 68, 0.08);
}

.auth-avatar {
  width: 1.72rem;
  height: 1.72rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #ffe4cc;
  color: #77411c;
  font-weight: 800;
}

.auth-user-label {
  max-width: 9rem;
  color: #182625;
  font-size: 0.9rem;
}

.auth-menu-trigger {
  width: 1.7rem;
  min-height: 1.7rem;
  padding: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: #455755;
}

.auth-menu-trigger .material-symbols-outlined {
  font-size: 1.1rem;
}

.lang-globe {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #283837;
  box-shadow: none;
}

.language-picker {
  padding: 0.18rem;
  background: #f4f6f5;
  box-shadow: none;
}

.lang-btn {
  min-width: 2.35rem;
  min-height: 1.8rem;
  font-size: 0.78rem;
}

.lang-btn.active,
.lang-btn[aria-pressed="true"] {
  background: #dff5ec;
  color: #063f34;
}

body.menu-active .app,
body:not(.menu-active) .app {
  width: min(1196px, calc(100vw - 2rem));
  margin-top: 5.7rem;
}

.menu-shell {
  padding: 1.6rem 1.9rem 2rem;
  border: 1px solid rgba(28, 46, 45, 0.1);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(18, 31, 34, 0.05);
}

.landing-overview {
  gap: 1.8rem;
  margin-bottom: 0;
}

.landing-hero {
  min-height: 300px;
  padding: 1.25rem 1.6rem 1.45rem;
  border-radius: 0;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.78fr);
  background: #ffffff;
  box-shadow: inset 0 -1px 0 rgba(31, 56, 54, 0.08);
}

.landing-hero-copy {
  gap: 1.05rem;
}

.landing-hero h2 {
  max-width: 520px;
  color: #182625;
  font-size: clamp(2.05rem, 4vw, 3.45rem);
  line-height: 1.08;
  text-transform: none;
  letter-spacing: -0.035em;
}

.landing-hero-copy p {
  max-width: 560px;
  margin: 0;
  color: #53605f;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.65;
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.landing-hero .btn,
.landing-signin-band .btn {
  width: min(100%, 220px);
  min-height: 3.05rem;
  border-radius: 8px;
  box-shadow: none;
}

.btn.primary,
.landing-signin-band .btn.primary {
  background: linear-gradient(180deg, #11a17f, #087a61);
}

.btn.landing-learn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(8, 116, 97, 0.62);
  background: #ffffff;
  color: #086c59;
  text-decoration: none;
}

.landing-hero-art {
  min-height: 270px;
}

.landing-hero-brain {
  width: min(86%, 340px);
}

.landing-hero-shapes {
  width: min(105%, 415px);
}

.landing-how,
.landing-skills-panel,
.landing-samples-panel {
  padding: 0 1.25rem;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.landing-how {
  padding-top: 0.7rem;
}

.landing-how h2,
.landing-skills-panel h2,
.landing-samples-panel h2 {
  margin: 0 0 1.25rem;
  color: #182625;
  text-align: center;
  font-size: clamp(1.25rem, 2.1vw, 1.65rem);
  text-transform: none;
  letter-spacing: -0.02em;
}

.landing-steps {
  position: relative;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  padding: 0.2rem 0.6rem;
}

.landing-step {
  min-height: 0;
  padding: 0;
  border-radius: 0;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 0.65rem;
  background: transparent;
  text-align: center;
}

.landing-step img {
  width: 5.35rem;
  height: 5.35rem;
  padding: 0.52rem;
  border-radius: 999px;
  background: #f1f5f3;
}

.landing-step h3 {
  margin: 0.2rem 0 0;
  color: #182625;
  font-size: 0.98rem;
  line-height: 1.25;
}

.landing-step p {
  max-width: 230px;
  color: #606c6b;
  font-size: 0.9rem;
  font-weight: 500;
}

.landing-skill-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.landing-skill-card {
  min-height: 6.7rem;
  padding: 1.1rem;
  border: 1px solid rgba(38, 66, 63, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(18, 31, 34, 0.04);
}

.landing-skill-card img {
  width: 3.75rem;
  height: 3.75rem;
}

.landing-skill-card h3 {
  margin: 0 0 0.25rem;
  color: #182625;
  font-size: 0.98rem;
}

.landing-skill-card p {
  margin: 0;
  color: #5b6866;
  font-size: 0.82rem;
  line-height: 1.45;
}

.landing-sample-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
}

.landing-sample-card img {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  box-shadow: none;
}

.landing-sample-card figcaption {
  margin-top: 0.55rem;
  color: #182625;
  font-size: 0.86rem;
}

.landing-signin-band {
  margin: 0.4rem 0 0;
  padding: 1.55rem 2rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  background: linear-gradient(90deg, #eefbf7, #f7fbfa);
}

.landing-signin-band h2 {
  margin: 0 0 0.35rem;
  color: #087461;
  font-size: 1.12rem;
  text-transform: none;
}

.landing-signin-band p {
  margin: 0;
  color: #263534;
  font-size: 0.92rem;
}

.home-welcome-row {
  margin: 0.25rem 0 0.6rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.home-welcome-copy {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.home-wave {
  font-size: 2rem;
}

.home-greeting {
  margin: 0;
  color: #182625;
  text-align: left;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

.home-greeting-subtitle {
  margin: 0.22rem 0 0;
  color: #5f6a68;
  font-size: 0.9rem;
  font-weight: 500;
}

.menu-age-section,
.age-picker {
  margin-top: -3.4rem;
  margin-left: auto;
  width: min(100%, 540px);
  padding: 0;
  text-align: left;
}

.age-picker .eyebrow {
  margin-bottom: 0.55rem;
  color: #182625;
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: none;
}

.age-options {
  margin: 0;
  padding: 0;
  width: 100%;
  gap: 0.55rem;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.age-btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 2.55rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(31, 56, 54, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: #263534;
  font-size: 0.82rem;
  box-shadow: none;
}

.age-btn.active,
.age-btn[aria-pressed="true"] {
  border-color: #9b6200;
  background: #ffc965;
  color: #4d3300;
  box-shadow: none;
}

.mixed-grid {
  margin-top: 1.7rem;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.05fr);
  gap: 1.35rem;
}

.mixed-card {
  min-height: 148px;
  padding: 1.6rem;
  padding-inline-end: clamp(8rem, 18vw, 14rem);
  border: 1px solid rgba(38, 66, 63, 0.12);
  border-radius: 8px;
  box-shadow: none;
}

.mixed-card h2 {
  color: #182625;
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  text-transform: none;
}

.mixed-card-primary h2,
.mixed-card-primary .mixed-description {
  color: #ffffff;
}

.mixed-card-primary {
  background: linear-gradient(135deg, #087d64, #1fc99e);
  box-shadow: 0 18px 30px rgba(8, 125, 100, 0.2);
}

.mixed-card-secondary {
  background: #fbfdfc;
}

.mixed-description {
  max-width: 310px;
  color: #52605e;
  font-size: 0.94rem;
}

.chip-label {
  min-height: 1.55rem;
  padding: 0.22rem 0.58rem;
  background: rgba(255, 255, 255, 0.45);
  color: #eafff9;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.mixed-card-secondary .chip-label {
  background: #eef2f0;
  color: #60706e;
}

.mixed-card-art {
  right: 1.15rem;
  width: clamp(7.1rem, 14vw, 10rem);
  max-width: 36%;
}

.mixed-card-secondary .mixed-card-art {
  width: clamp(7.5rem, 15vw, 10.8rem);
}

.mixed-action-btn {
  width: min(100%, 275px);
  min-width: 0;
  min-height: 2.85rem;
  margin-top: 0.85rem;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  text-transform: none;
  box-shadow: none;
}

.mixed-start-btn,
.mixed-start-btn:hover,
.mixed-full-btn,
.mixed-full-btn:hover {
  transform: none;
  box-shadow: none;
}

.mixed-full-btn {
  border: 1px solid rgba(8, 116, 97, 0.65);
  background: #ffffff;
  color: #076351;
}

.progress-dashboard {
  margin-top: 1.2rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.25rem;
}

.progress-panel {
  padding: 1.2rem;
  border: 1px solid rgba(38, 66, 63, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.progress-panel h2 {
  margin-top: 0.18rem;
  color: #182625;
  font-size: 1.18rem;
  text-transform: none;
}

.progress-panel .eyebrow {
  color: #6a7674;
  font-size: 0.83rem;
  letter-spacing: 0;
  text-transform: none;
}

.progress-details-btn {
  border: 0;
  background: transparent;
  color: #285aa8;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.progress-count {
  color: #182625;
  font-size: 0.82rem;
  text-align: right;
}

.progress-metric {
  min-height: 6.1rem;
  padding: 1rem;
  border-radius: 8px;
  background: #f1f6f4;
}

.progress-metric span {
  color: #263534;
  text-transform: none;
}

.progress-metric strong {
  font-size: 1.55rem;
}

.progress-summary {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  background: #eaf8f1;
  color: #087461;
}

.skill-breakdown-list {
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.skill-progress-item {
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(38, 66, 63, 0.08);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.25rem 0.85rem;
  background: #ffffff;
  box-shadow: none;
}

.skill-progress-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-column: 1;
  grid-row: 1 / span 2;
}

.skill-progress-icon {
  width: 2.72rem;
  height: 2.72rem;
}

.skill-progress-item h3 {
  margin: 0;
  font-size: 0.9rem;
  text-transform: none;
}

.skill-progress-item .progress-count {
  margin: 0.18rem 0 0;
  text-align: left;
}

.skill-progress-header .progress-status,
.skill-progress-item > .progress-empty,
.skill-progress-item > .progress-hint,
.skill-progress-item > .progress-metrics {
  grid-column: 2;
  justify-self: end;
}

.skill-progress-item > .progress-empty,
.skill-progress-item > .progress-hint {
  margin: 0;
  color: #6a7674;
  font-size: 0.78rem;
  text-align: right;
}

.skill-progress-item > .progress-hint {
  display: none;
}

.skill-progress-item > .progress-metrics {
  width: min(230px, 100%);
  margin: 0;
  grid-template-columns: 1fr;
}

.skill-progress-item > .progress-metrics .progress-metric {
  min-height: 0;
  padding: 0;
  background: transparent;
}

.skill-progress-item > .progress-metrics .progress-metric span {
  display: none;
}

.skill-progress-item > .progress-metrics .progress-metric strong {
  color: #087461;
  font-size: 0.78rem;
}

.progress-status {
  padding: 0;
  background: transparent;
  color: #087461;
  font-size: 0.78rem;
}

.single-games-section {
  margin-top: 1.55rem;
}

.single-games-title {
  color: #182625;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  text-transform: none;
}

.single-games-subtitle {
  margin-top: 0.25rem;
  color: #6a7674;
  font-size: 0.9rem;
}

.single-games-underline {
  display: none;
}

.domain-grid {
  gap: 1.25rem;
  margin-top: 1.2rem;
}

.domain-column {
  padding: 0;
  border: 1px solid rgba(38, 66, 63, 0.11);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
  overflow: hidden;
}

.domain-header {
  margin: 0;
  padding: 0.95rem 1rem;
  border: 0;
  color: #5f4200;
  font-size: 0.94rem;
  text-align: center;
}

.domain-logic .domain-header {
  background: #fff0d3;
  color: #8a5a00;
}

.domain-spatial .domain-header {
  background: #ecf2ff;
  color: #244b8f;
}

.domain-processing .domain-header {
  background: #e8f8f2;
  color: #087461;
}

.domain-games {
  gap: 0;
}

.game-tile {
  min-height: 4.55rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(38, 66, 63, 0.08);
  border-radius: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  text-align: left;
  box-shadow: none;
}

.game-tile:last-child {
  border-bottom: 0;
}

.game-tile:hover {
  transform: none;
  box-shadow: none;
  background: #fbfdfc;
}

.tile-icon-wrap {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 8px;
}

.tile-icon-wrap .material-symbols-outlined {
  font-size: 1.55rem;
}

.tile-icon-wrap img {
  width: 100%;
  height: 100%;
  display: block;
}

.game-tile h4 {
  margin: 0;
  color: #182625;
  font-size: 0.9rem;
}

.tile-skill {
  margin: 0.18rem 0 0;
  color: #5f6a68;
  font-size: 0.76rem;
  letter-spacing: 0;
  text-transform: none;
}

.game-tile-hit {
  min-width: 4.1rem;
  min-height: 2rem;
  margin: 0;
  padding: 0.38rem 0.75rem;
  border-radius: 8px;
  background: #eef8f4;
  color: #087461;
  font-size: 0.78rem;
  box-shadow: none;
}

.game-tile-hit:hover {
  transform: none;
  box-shadow: none;
  background: #dff5ec;
}

.menu-footer {
  width: min(1196px, calc(100vw - 2rem));
  margin: 1rem auto 0;
  padding: 0.95rem 1.4rem;
  border: 1px solid rgba(28, 46, 45, 0.1);
  border-radius: 8px;
  background: #ffffff;
}

.menu-footer .brand-name {
  font-size: 1.35rem;
}

.footer-links a,
.footer-copy {
  font-size: 0.82rem;
}

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

  .landing-hero-art {
    order: -1;
    min-height: 235px;
  }

  .landing-skill-list,
  .landing-steps,
  .progress-dashboard,
  .domain-grid {
    grid-template-columns: 1fr;
  }

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

  .menu-age-section,
  .age-picker {
    margin: 1rem 0 0;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .top-app-bar {
    top: 0.55rem;
  }

  .top-app-shell,
  body.menu-active .app,
  .menu-footer {
    width: min(100vw - 1rem, 1196px);
  }

  .top-app-shell {
    min-height: 4rem;
    padding: 0.58rem 0.75rem;
  }

  .top-app-actions {
    gap: 0.35rem;
  }

  .brand-name {
    font-size: 1.3rem;
  }

  .auth-user-label {
    max-width: 4.2rem;
  }

  .lang-globe {
    display: none;
  }

  body.menu-active .app,
  body:not(.menu-active) .app {
    margin-top: 4.95rem;
  }

  .menu-shell {
    padding: 1rem 0.85rem 1.25rem;
  }

  .landing-hero {
    padding: 0.85rem 0.4rem 1.25rem;
  }

  .landing-hero h2 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .landing-hero-actions,
  .landing-signin-band {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-hero .btn,
  .landing-signin-band .btn {
    width: 100%;
  }

  .landing-skill-list,
  .landing-sample-grid {
    grid-template-columns: 1fr;
  }

  .landing-signin-band {
    padding: 1.15rem;
  }

  .home-welcome-row,
  .home-welcome-copy {
    align-items: flex-start;
  }

  .age-options {
    display: grid;
    grid-template-columns: 1fr;
  }

  .age-btn {
    width: 100%;
  }

  .mixed-card {
    min-height: 0;
    padding: 1.25rem;
    padding-inline-end: 1.25rem;
  }

  .mixed-card-art,
  .mixed-card-secondary .mixed-card-art {
    position: static;
    order: -1;
    width: 6.8rem;
    max-width: 44%;
    margin: 0 0 0.55rem;
    transform: none;
  }

  .progress-panel-header {
    display: grid;
  }

  .progress-count {
    text-align: left;
  }

  .skill-progress-item {
    grid-template-columns: 1fr;
  }

  .skill-progress-header .progress-status,
  .skill-progress-item > .progress-empty,
  .skill-progress-item > .progress-hint,
  .skill-progress-item > .progress-metrics {
    grid-column: 1;
    justify-self: start;
    text-align: left;
  }

  .game-tile {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .game-tile-hit {
    grid-column: 2;
    justify-self: start;
  }

  .menu-footer {
    align-items: flex-start;
  }
}

.challenge-summary {
  width: min(100%, 72rem);
  margin: 1rem auto 0;
  padding: 0.95rem 1rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  border: 1px solid rgba(10, 99, 91, 0.2);
  border-radius: 8px;
  background: #f7fbfa;
  color: #18312f;
}

.challenge-summary img {
  width: 2.4rem;
  height: 2.4rem;
  object-fit: contain;
}

.challenge-summary strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  color: #0c695e;
}

.challenge-summary p {
  margin: 0.15rem 0 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.child-progress-section {
  width: min(100%, 72rem);
  margin: 1.65rem auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #18312f;
}

.section-heading {
  margin: 0 0 1.3rem;
  text-align: left;
}

.section-heading-title {
  margin: 0;
  color: #111f30;
  font-size: clamp(1.85rem, 2.7vw, 2.45rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
}

.section-heading-subtitle {
  margin: 0.45rem 0 0;
  max-width: 38rem;
  color: #536271;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.4;
  text-align: left;
}

.child-progress-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.child-progress-card {
  --skill-accent: #087461;
  --skill-strong: #087461;
  --skill-soft: #e9f7f1;
  min-width: 0;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(24, 38, 37, 0.1);
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(17, 31, 37, 0.025);
}

.child-progress-pattern_logic {
  --skill-accent: #bc8215;
  --skill-strong: #9a6500;
  --skill-soft: #fff1d4;
}

.child-progress-spatial_visual {
  --skill-accent: #567ebf;
  --skill-strong: #164eae;
  --skill-soft: #edf3ff;
}

.child-progress-processing_memory {
  --skill-accent: #0f8d6c;
  --skill-strong: #087461;
  --skill-soft: #e9f7f1;
}

.child-progress-card-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  padding: 1rem 1.1rem;
  background: var(--skill-soft);
  border-bottom: 1px solid color-mix(in srgb, var(--skill-accent) 22%, transparent);
}

.child-progress-card-header img {
  width: 3.6rem;
  height: 3.6rem;
  object-fit: contain;
}

.child-progress-card h3 {
  margin: 0;
  color: #111f30;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
}

.child-progress-title {
  display: block;
  margin-top: 0.15rem;
  color: var(--skill-strong);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.2;
}

.child-progress-badge {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--skill-strong);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.2;
}

.child-progress-message {
  margin: 0.75rem 0 0;
  color: #334254;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.35;
}

.child-progress-power-value {
  margin: 1rem 1.1rem 0;
  color: #142434;
  font-size: 2.55rem;
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: 0;
}

.child-progress-groups {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 1.1rem 0;
}

.child-progress-group-row,
.parent-progress-group-row {
  display: grid;
  gap: 0.7rem;
  padding: 0.72rem;
  border: 1px solid rgba(24, 38, 37, 0.1);
  border-radius: 8px;
  background: #ffffff;
}

.child-progress-group-row {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--skill-accent) 9%, transparent), transparent 58%),
    #ffffff;
  border-color: color-mix(in srgb, var(--skill-accent) 22%, transparent);
}

.child-progress-group-header,
.parent-progress-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.child-progress-group-title {
  display: grid;
  gap: 0.08rem;
}

.child-progress-group-title strong,
.parent-progress-group-header strong {
  color: #152938;
  font-size: 1.08rem;
  font-weight: 950;
}

.child-progress-group-title span {
  color: #617080;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.15;
}

.child-progress-status-badge,
.parent-progress-group-header span {
  min-width: max-content;
  padding: 0.32rem 0.52rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--skill-accent) 13%, #ffffff);
  color: var(--skill-strong);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.child-progress-group-metrics,
.parent-progress-group-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.child-progress-group-metrics > span,
.parent-progress-group-metrics > span {
  min-width: 0;
  min-height: 3.45rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem;
  border-radius: 8px;
  background: #f7faf9;
}

.child-progress-group-metrics > span {
  background: color-mix(in srgb, var(--skill-accent) 7%, #ffffff);
}

.child-progress-group-metrics .material-symbols-outlined,
.parent-progress-group-metrics .material-symbols-outlined {
  color: var(--skill-strong, #087461);
  font-size: 1.15rem;
  font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 24;
}

.progress-inline-metric-copy {
  min-width: 0;
  display: grid;
  gap: 0.08rem;
}

.child-progress-group-metrics small,
.parent-progress-group-metrics small {
  color: #617080;
  font-size: 0.64rem;
  font-weight: 850;
  line-height: 1.05;
}

.child-progress-group-metrics strong,
.parent-progress-group-metrics strong {
  color: #1d2d3d;
  font-size: 0.95rem;
  font-weight: 950;
  line-height: 1.05;
}

.parent-progress-groups {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.parent-progress-group-row p {
  margin: 0;
  color: #263646;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

.child-progress-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  padding: 1rem 1.1rem 1.1rem;
}

.child-progress-reward {
  min-width: 0;
  color: var(--skill-strong);
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.25;
}

.child-progress-cta {
  min-height: 2.3rem;
  border-radius: 8px;
  white-space: nowrap;
}

.parent-progress-entry {
  width: min(100%, 72rem);
  margin: 1rem auto 0;
  padding: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(17, 31, 48, 0.12);
  border-radius: 8px;
  background: #ffffff;
  color: #18312f;
}

.parent-progress-entry h2 {
  margin: 0.1rem 0 0;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
}

.parent-progress-entry p:not(.eyebrow) {
  margin: 0.25rem 0 0;
  color: #536271;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.35;
}

.parent-progress-link {
  min-height: 3rem;
  border-radius: 8px;
  display: inline-grid;
  grid-auto-flow: column;
  gap: 0.45rem;
  align-items: center;
  white-space: nowrap;
}

.parent-progress-screen {
  width: min(1180px, 95vw);
  margin: 1rem auto 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.parent-progress-shell {
  display: grid;
  gap: 1rem;
}

.parent-progress-topbar {
  display: flex;
  justify-content: flex-start;
}

.parent-progress-back {
  min-height: 2.75rem;
  border-radius: 8px;
  display: inline-grid;
  grid-auto-flow: column;
  gap: 0.45rem;
  align-items: center;
}

.parent-progress-panel {
  background: #ffffff;
}

@media (max-width: 720px) {
  .challenge-summary {
    width: calc(100% - 1.4rem);
    margin-top: 0.75rem;
    padding: 0.85rem;
  }

  .child-progress-section {
    width: calc(100% - 1.4rem);
    padding: 0;
  }

  .child-progress-list {
    grid-template-columns: 1fr;
  }

  .parent-progress-entry {
    width: calc(100% - 1.4rem);
    grid-template-columns: 1fr;
    align-items: start;
  }

  .parent-progress-link {
    justify-content: center;
    width: 100%;
  }
}

/* Reference tightening pass */
.menu-shell {
  padding: 1.25rem 1.65rem 1.65rem;
}

.landing-overview {
  gap: 1.15rem;
}

.landing-hero {
  min-height: 270px;
  padding: 1.65rem 1.55rem 1.25rem;
  grid-template-columns: minmax(0, 0.58fr) minmax(280px, 0.42fr);
  gap: 1.1rem;
}

.landing-hero h2 {
  max-width: 520px;
  font-size: clamp(2rem, 3.2vw, 2.72rem);
  line-height: 1.14;
}

.landing-hero h2 > span {
  display: block;
}

.landing-hero-accent {
  color: #087461;
}

.landing-hero-copy {
  align-content: center;
  gap: 0.82rem;
}

.landing-hero-copy p {
  max-width: 510px;
  font-size: 0.93rem;
  line-height: 1.55;
}

.landing-hero-actions {
  margin-top: 0.3rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(145px, 170px));
  gap: 0.9rem;
}

.landing-hero .btn,
.landing-signin-band .btn {
  width: 100%;
  min-height: 2.85rem;
}

.landing-hero-art {
  min-height: 240px;
}

.landing-hero-brain {
  width: min(100%, 360px);
}

.landing-how {
  margin: 0.15rem 0.65rem 0;
  padding: 1rem 1.2rem 1.25rem;
  border: 1px solid rgba(31, 56, 54, 0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(18, 31, 34, 0.025);
}

.landing-how h2 {
  margin-bottom: 0.95rem;
  font-size: 1.05rem;
}

.landing-steps {
  gap: 0;
  padding: 0 0.5rem;
}

.landing-step {
  position: relative;
  gap: 0.45rem;
}

.landing-step:not(:last-child)::after,
.landing-steps--illustrated .landing-step:not(:last-child)::after {
  content: "";
  display: block;
  position: absolute;
  top: 2.65rem;
  left: calc(50% + 3.4rem);
  width: calc(100% - 6.8rem);
  height: 0.3rem;
  background-image: radial-gradient(circle, rgba(31, 56, 54, 0.18) 1.8px, transparent 2px);
  background-size: 1.1rem 0.3rem;
  background-repeat: repeat-x;
}

.landing-step img {
  width: 5.15rem;
  height: 5.15rem;
  padding: 0.7rem;
}

.landing-step h3 {
  font-size: 0.78rem;
}

.landing-step p {
  max-width: 205px;
  font-size: 0.75rem;
  line-height: 1.45;
}

.landing-skills-panel,
.landing-samples-panel {
  padding: 0 0.65rem;
}

.landing-skills-panel h2,
.landing-samples-panel h2 {
  margin-bottom: 1rem;
  font-size: 1.18rem;
}

.landing-skill-list {
  gap: 1rem;
}

.landing-skill-card {
  min-height: 5.55rem;
  padding: 0.85rem 0.95rem;
}

.landing-skill-card img {
  width: 3.2rem;
  height: 3.2rem;
}

.landing-skill-card h3 {
  font-size: 0.82rem;
}

.landing-skill-card p {
  font-size: 0.68rem;
  line-height: 1.4;
}

.landing-sample-grid {
  gap: 1.05rem;
}

.landing-sample-card img {
  border-radius: 8px;
}

.landing-sample-card figcaption {
  margin-top: 0.45rem;
  font-size: 0.76rem;
}

.landing-signin-band {
  margin: 0.35rem 0.65rem 0;
  padding: 1.25rem 2rem;
}

.home-welcome-row {
  margin: 0.1rem 0 0.5rem;
}

.home-greeting {
  font-size: 1rem;
}

.home-greeting-subtitle {
  font-size: 0.78rem;
}

.menu-age-section,
.age-picker {
  margin-top: -3rem;
}

.mixed-grid {
  margin-top: 1.35rem;
  gap: 1rem;
}

.mixed-card {
  min-height: 150px;
  padding: 1.35rem 1.55rem;
  padding-inline-end: clamp(8rem, 16vw, 12.5rem);
}

.mixed-card h2 {
  font-size: clamp(1.48rem, 2.45vw, 1.95rem);
}

.mixed-description {
  font-size: 0.82rem;
  line-height: 1.45;
}

.mixed-card-art {
  width: clamp(6rem, 11vw, 8.5rem);
  max-width: 33%;
}

.mixed-card-secondary .mixed-card-art {
  width: clamp(7rem, 12vw, 9.6rem);
}

.mixed-action-btn {
  width: min(100%, 185px);
  min-height: 2.6rem;
}

.progress-dashboard {
  gap: 1rem;
}

.progress-panel {
  padding: 1.05rem 1.15rem;
}

.progress-panel h2 {
  font-size: 1.05rem;
}

.progress-panel .eyebrow {
  font-size: 0.76rem;
}

.progress-metric {
  min-height: 5.35rem;
}

.progress-summary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.65rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.78rem;
}

.progress-summary::before {
  content: "";
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  flex: 0 0 auto;
  background: #d9f3e8 url("/public/assets/icons/ui/progress.svg?v=fe924f557604") center / 1.05rem 1.05rem no-repeat;
}

.skill-progress-item {
  min-height: 3.9rem;
}

.skill-progress-icon {
  width: 2.5rem;
  height: 2.5rem;
}

.single-games-section {
  margin-top: 1.25rem;
}

.single-games-title {
  font-size: 1.15rem;
}

.single-games-subtitle {
  font-size: 0.78rem;
}

.domain-grid {
  gap: 1rem;
  margin-top: 0.95rem;
}

.domain-header {
  padding: 0.82rem 1rem;
  font-size: 0.82rem;
}

.game-tile {
  min-height: 4.1rem;
  padding: 0.65rem 0.72rem;
}

.tile-icon-wrap {
  width: 2.45rem;
  height: 2.45rem;
}

.game-tile h4 {
  font-size: 0.78rem;
}

.tile-skill,
.game-tile-hit {
  font-size: 0.68rem;
}

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

  .landing-hero-actions {
    grid-template-columns: repeat(2, minmax(135px, 1fr));
  }

  .landing-step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 720px) {
  .menu-shell {
    padding: 0.85rem 0.75rem 1.1rem;
  }

  .landing-hero {
    padding: 0.65rem 0.4rem 1rem;
  }

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

  .landing-how,
  .landing-signin-band {
    margin-inline: 0;
  }

  .landing-skills-panel,
  .landing-samples-panel {
    padding-inline: 0;
  }
}

/* Final reference alignment pass for the logged-in dashboard cards. */
.home-greeting {
  font-weight: 800;
  letter-spacing: 0;
}

.home-wave {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff5d9;
  font-size: 1.7rem;
}

.progress-global-panel {
  position: relative;
}

.progress-global-panel .progress-panel-header {
  padding-inline-end: 7.2rem;
}

.progress-global-panel > .progress-count {
  position: absolute;
  top: 1.4rem;
  right: 1.15rem;
  margin: 0;
  color: #182625;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.progress-metric {
  align-content: start;
  gap: 0.35rem;
}

.progress-metric-delta {
  color: #087461;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.15;
}

.progress-metric strong {
  white-space: nowrap;
}

.skill-progress-status {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  align-self: center;
  display: grid;
  gap: 0.18rem;
  color: #667270;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: right;
}

.skill-progress-status strong {
  color: #087461;
  font-size: 0.76rem;
}

.skill-progress-item > .progress-empty {
  align-self: center;
}

@media (max-width: 720px) {
  .progress-global-panel .progress-panel-header {
    padding-inline-end: 0;
  }

  .progress-global-panel > .progress-count {
    position: static;
    margin-top: 0.45rem;
    text-align: left;
  }

  .progress-metric strong {
    white-space: normal;
  }

  .skill-progress-status {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    text-align: left;
  }
}

/* Kavra reference UI pass */
:root {
  --kavra-ink: #121f2f;
  --kavra-muted: #4f5f6f;
  --kavra-line: rgba(24, 38, 37, 0.1);
  --kavra-green: #087b63;
  --kavra-green-strong: #006f57;
  --kavra-green-soft: #e7f7f0;
  --kavra-blue: #2d61c8;
  --kavra-orange: #d89014;
}

body {
  background:
    radial-gradient(780px 260px at 50% -130px, rgba(8, 123, 99, 0.08), transparent 72%),
    linear-gradient(180deg, #f7f9f8 0%, #f2f5f4 100%);
  color: var(--kavra-ink);
}

.top-app-bar {
  position: relative;
  inset: auto;
  padding-top: 1rem;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.top-app-shell,
body.menu-active .app,
body:not(.menu-active) .app,
.menu-footer {
  width: min(1480px, calc(100vw - 2rem));
}

.top-app-shell {
  min-height: 4.15rem;
  padding: 0.8rem 1.28rem;
  border: 1px solid var(--kavra-line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #ffffff;
  box-shadow: none;
}

.brand-lockup,
.footer-brand {
  gap: 0.52rem;
}

.brand-mark {
  width: 1.78rem;
  height: 1.78rem;
  background: transparent;
  box-shadow: none;
}

.brand-mark img,
.lang-globe img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand-name {
  color: #087461;
  font-size: clamp(1.35rem, 1.65vw, 1.72rem);
  font-weight: 700;
  letter-spacing: 0;
}

.top-app-actions {
  gap: 0.72rem;
}

.auth-sign-in-btn {
  min-height: 2.35rem;
  padding: 0.5rem 1.15rem;
  border: 1px solid var(--kavra-green);
  border-radius: 8px;
  background: #ffffff;
  color: #0f2330;
  box-shadow: none;
}

.auth-user {
  min-height: 2.34rem;
  padding: 0.22rem 0.28rem 0.22rem 0.24rem;
  border: 0;
  background: #f6f8f7;
  box-shadow: inset 0 0 0 1px rgba(24, 38, 37, 0.08);
}

.auth-avatar {
  width: 1.8rem;
  height: 1.8rem;
  overflow: hidden;
  border-radius: 999px;
  background: #ffdfbd url("/public/assets/avatars/child-aslan-128.webp?v=4a467e277fad") center / cover no-repeat;
  color: transparent;
  font-size: 0;
}

.auth-user-label {
  max-width: 8rem;
  color: #182625;
  font-size: 0.84rem;
}

.auth-menu-trigger {
  width: 1.75rem;
  min-height: 1.75rem;
  padding: 0;
  background: transparent;
}

.lang-globe {
  width: 1.55rem;
  height: 1.55rem;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.language-picker {
  padding: 0.18rem;
  gap: 0.12rem;
  background: #f4f6f5;
  box-shadow: none;
}

.lang-btn {
  min-width: 2.5rem;
  min-height: 1.82rem;
  font-size: 0.76rem;
  letter-spacing: 0;
}

.lang-btn.active,
.lang-btn[aria-pressed="true"] {
  background: #dff4ec;
  color: #062f27;
}

body.menu-active .app,
body:not(.menu-active) .app {
  margin-top: 0;
}

body.menu-active .app {
  padding-bottom: 0;
}

.menu-shell {
  padding: 1.55rem 1.7rem 1.75rem;
  border: 1px solid var(--kavra-line);
  border-top: 0;
  border-bottom: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.landing-overview {
  gap: 1.55rem;
}

.landing-hero {
  min-height: 275px;
  padding: 1.25rem 1.6rem 1.15rem;
  grid-template-columns: minmax(0, 0.72fr) minmax(300px, 0.68fr);
  gap: 1.2rem;
  border-radius: 0;
  background: #ffffff;
  box-shadow: inset 0 -1px 0 rgba(24, 38, 37, 0.08);
}

.landing-hero h2 {
  max-width: 520px;
  color: #111f30;
  font-size: clamp(2.2rem, 3.55vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: none;
}

.landing-hero h2 > span {
  display: block;
}

.landing-hero-accent {
  color: #087461;
}

.landing-hero-copy {
  align-content: center;
  gap: 0.88rem;
}

.landing-hero-copy p {
  max-width: 520px;
  margin: 0;
  color: #536271;
  font-size: 0.94rem;
  line-height: 1.55;
}

.landing-hero-actions {
  margin-top: 0.35rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(145px, 168px));
  gap: 0.9rem;
}

.landing-hero .btn,
.landing-signin-band .btn {
  width: 100%;
  min-height: 2.72rem;
  border-radius: 8px;
  box-shadow: none;
}

.btn.primary,
.landing-signin-band .btn.primary {
  background: linear-gradient(180deg, #10a582, #087b63);
}

.btn.landing-learn-btn {
  border: 1px solid rgba(8, 116, 97, 0.68);
  background: #ffffff;
  color: #087461;
}

.landing-hero-art {
  min-height: 255px;
}

.landing-hero-brain {
  width: min(100%, 385px);
}

.landing-how {
  margin: 0 0.35rem;
  padding: 0.8rem 1.2rem 1.15rem;
  border: 1px solid rgba(24, 38, 37, 0.09);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 31, 37, 0.025);
}

.landing-how h2,
.landing-skills-panel h2,
.landing-samples-panel h2 {
  margin: 0 0 0.95rem;
  color: #111f30;
  font-size: clamp(1.05rem, 1.45vw, 1.24rem);
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
}

.landing-steps {
  gap: 0;
  padding: 0 0.5rem;
}

.landing-step {
  position: relative;
  padding: 0;
  background: transparent;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 0.48rem;
  text-align: center;
}

.landing-step:not(:last-child)::after,
.landing-steps--illustrated .landing-step:not(:last-child)::after {
  content: "";
  display: block;
  position: absolute;
  top: 2.55rem;
  left: calc(50% + 3.15rem);
  width: calc(100% - 6.3rem);
  height: 0.28rem;
  background-image: radial-gradient(circle, rgba(75, 87, 96, 0.22) 1.7px, transparent 2px);
  background-size: 1rem 0.28rem;
}

.landing-step img {
  width: 5.15rem;
  height: 5.15rem;
  padding: 0.58rem;
  border-radius: 999px;
  background: #eef4f1;
}

.landing-step h3 {
  margin: 0.12rem 0 0;
  color: #111f30;
  font-size: 0.82rem;
  letter-spacing: 0;
}

.landing-step p {
  max-width: 210px;
  color: #536271;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.42;
}

.landing-step img.landing-step-illustration {
  width: clamp(7rem, 10vw, 9rem);
  height: clamp(7rem, 10vw, 9rem);
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.landing-steps--illustrated .landing-step:not(:last-child)::after {
  top: clamp(3.5rem, 5vw, 4.5rem);
  left: calc(50% + clamp(4.15rem, 5.75vw, 5.05rem));
  width: calc(100% - clamp(8.3rem, 11.5vw, 10.1rem));
}

.landing-skills-panel,
.landing-samples-panel {
  padding: 0 0.35rem;
}

.landing-skill-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.landing-skill-card {
  min-height: 5.6rem;
  padding: 0.95rem;
  border: 1px solid rgba(24, 38, 37, 0.09);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(17, 31, 37, 0.035);
}

.landing-skill-card img {
  width: 3.45rem;
  height: 3.45rem;
}

.landing-skill-card h3 {
  color: #111f30;
  font-size: 0.82rem;
  letter-spacing: 0;
}

.landing-skill-card p {
  margin: 0;
  color: #536271;
  font-size: 0.68rem;
  line-height: 1.36;
}

.landing-skill-card img.landing-skill-icon {
  width: clamp(4.2rem, 5.2vw, 5rem);
  height: clamp(4.2rem, 5.2vw, 5rem);
  border-radius: 1.1rem;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(17, 31, 37, 0.07));
}

.landing-sample-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.landing-sample-card img {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  box-shadow: none;
}

.landing-sample-card figcaption {
  margin-top: 0.48rem;
  color: #111f30;
  font-size: 0.78rem;
}

.landing-signin-band {
  margin: 0.25rem 0.35rem 0;
  min-height: 5.6rem;
  padding: 1rem 1.45rem 1rem 6.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  background:
    url("/public/assets/illustrations/mascot-brain-hero-240.webp?v=a859936975f4") left 1.2rem center / 4.25rem auto no-repeat,
    linear-gradient(90deg, #eaf9f4, #f6fbf9);
}

.landing-signin-band h2 {
  margin: 0 0 0.25rem;
  color: #087461;
  font-size: 1.18rem;
  letter-spacing: 0;
}

.landing-signin-band p {
  margin: 0;
  color: #283746;
  font-size: 0.86rem;
}

.dashboard-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(520px, 1fr);
  align-items: start;
  gap: 1rem;
  margin-bottom: 1.05rem;
}

.home-welcome-row {
  margin: 0;
}

.home-welcome-copy {
  gap: 0.75rem;
}

.home-wave {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  background: #fff4df;
  font-size: 1.85rem;
}

.home-greeting {
  margin: 0;
  color: #111f30;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.home-greeting-subtitle {
  margin-top: 0.32rem;
  color: #536271;
  font-size: 0.78rem;
}

.menu-age-section,
.age-picker {
  margin: 0;
  width: 100%;
  padding: 0;
}

.age-picker .eyebrow {
  margin: 0 0 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #111f30;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
}

.age-info-icon {
  width: 1rem;
  height: 1rem;
  border: 1px solid rgba(17, 31, 48, 0.35);
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #536271;
  font-size: 0.68rem;
  line-height: 1;
}

.age-options {
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  background: transparent;
  box-shadow: none;
}

.age-btn {
  min-width: 0;
  min-height: 2.32rem;
  padding: 0.48rem 0.8rem;
  border: 1px solid rgba(17, 31, 48, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: #283746;
  font-size: 0.72rem;
  box-shadow: 0 8px 18px rgba(17, 31, 37, 0.035);
}

.age-btn.active,
.age-btn[aria-pressed="true"] {
  border-color: #087461;
  background: linear-gradient(180deg, #10a582, #087b63);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(8, 123, 99, 0.18);
}

.mixed-grid {
  margin-top: 0;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: 1rem;
}

.mixed-card {
  min-height: 250px;
  padding: 1.35rem 1.55rem;
  padding-inline-end: clamp(10rem, 18vw, 15rem);
  border: 1px solid rgba(24, 38, 37, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.mixed-card-primary {
  background:
    radial-gradient(180px 150px at 88% 84%, rgba(0, 73, 58, 0.22), transparent 72%),
    linear-gradient(135deg, #087b63, #08a17d);
  box-shadow: 0 18px 30px rgba(8, 123, 99, 0.2);
}

.mixed-card-secondary {
  background: linear-gradient(135deg, #fbfdfc, #f4f8f7);
}

.mixed-card h2 {
  color: #111f30;
  font-size: clamp(1.4rem, 2.1vw, 1.9rem);
  letter-spacing: 0;
  text-transform: none;
}

.mixed-card-primary h2,
.mixed-card-primary .mixed-description {
  color: #ffffff;
}

.mixed-card-primary .chip-label {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.chip-label {
  min-height: 1.55rem;
  padding: 0.25rem 0.58rem;
  background: #eef2f0;
  color: #4f5f6f;
  font-size: 0.68rem;
  letter-spacing: 0;
  text-transform: none;
}

.mixed-description {
  max-width: 310px;
  color: #4f5f6f;
  font-size: 0.84rem;
  line-height: 1.42;
}

.mixed-card-art {
  right: 1rem;
  width: clamp(8.4rem, 16vw, 12.5rem);
  max-width: 42%;
}

.mixed-card-secondary .mixed-card-art {
  width: clamp(8.6rem, 15vw, 12rem);
}

.mixed-action-btn {
  width: min(100%, 240px);
  min-height: 2.85rem;
  margin-top: 0.6rem;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  justify-content: space-between;
  box-shadow: none;
  text-transform: none;
}

.mixed-start-btn,
.mixed-start-btn:hover,
.mixed-full-btn,
.mixed-full-btn:hover {
  transform: none;
  box-shadow: none;
}

.mixed-start-btn {
  background: #ffffff;
  color: #087461;
}

.mixed-full-btn {
  border: 1px solid rgba(8, 116, 97, 0.68);
  background: #ffffff;
  color: #111f30;
}

.progress-dashboard {
  margin-top: 1rem;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: 1rem;
}

.progress-panel {
  padding: 1.05rem;
  border: 1px solid rgba(24, 38, 37, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 31, 37, 0.025);
}

.progress-global-panel {
  position: relative;
}

.progress-global-panel .progress-panel-header {
  padding-inline-end: 8rem;
}

.progress-panel h2 {
  color: #111f30;
  font-size: 1.12rem;
  letter-spacing: 0;
  text-transform: none;
}

.progress-panel .eyebrow {
  color: #536271;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
}

.progress-global-panel > .progress-count {
  position: absolute;
  top: 1.55rem;
  right: 1.05rem;
  margin: 0;
  color: #111f30;
  font-size: 0.75rem;
}

.progress-metrics {
  gap: 0.95rem;
}

.progress-metric {
  min-height: 5.65rem;
  padding: 0.95rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #f7faf9, #eff4f2);
  gap: 0.35rem;
}

.progress-metric span {
  color: #111f30;
  font-size: 0.76rem;
  letter-spacing: 0;
  text-transform: none;
}

.progress-metric strong {
  color: #111f30;
  font-size: 1.48rem;
  letter-spacing: 0;
}

.progress-metric-delta {
  color: #087461;
  font-size: 0.76rem;
}

.progress-summary {
  display: flex;
  align-items: center;
  gap: 0.58rem;
  min-height: 2.55rem;
  padding: 0.7rem 0.82rem;
  border-radius: 8px;
  background: #eaf7f1;
  color: #087461;
  font-size: 0.72rem;
}

.progress-summary::before {
  content: "";
  width: 1.42rem;
  height: 1.42rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #d9f3e8 url("/public/assets/icons/ui/progress.svg?v=fe924f557604") center / 0.95rem 0.95rem no-repeat;
}

.skill-breakdown-list {
  grid-template-columns: 1fr;
  gap: 0.68rem;
}

.skill-progress-item {
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  min-height: 3.5rem;
  padding: 0.5rem 0.6rem;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.skill-progress-header {
  display: grid;
  grid-column: 1 / 3;
  grid-row: 1;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
}

.skill-progress-icon {
  width: 2.55rem;
  height: 2.55rem;
}

.skill-progress-item h3 {
  color: #111f30;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.skill-progress-item .progress-count,
.skill-progress-status {
  display: none;
}

.skill-progress-bar {
  grid-column: 2;
  grid-row: 2;
  height: 0.3rem;
  border-radius: 999px;
  background: #edf1f0;
  overflow: hidden;
}

.skill-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #087461;
}

.skill-progress-item:nth-child(1) .skill-progress-bar span {
  background: #e79d14;
}

.skill-progress-item:nth-child(2) .skill-progress-bar span {
  background: #5b7bea;
}

.skill-progress-score {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  color: #111f30;
  font-size: 0.82rem;
}

.progress-details-btn {
  border: 0;
  background: transparent;
  color: #2d61c8;
  font-size: 0.76rem;
}

.single-games-section {
  margin-top: 0.85rem;
}

.single-games-title {
  color: #111f30;
  font-size: clamp(1.18rem, 1.55vw, 1.42rem);
  letter-spacing: 0;
  text-transform: none;
}

.single-games-subtitle {
  margin-top: 0.25rem;
  color: #536271;
  font-size: 0.86rem;
}

.single-games-underline {
  display: none;
}

.domain-grid {
  gap: 1rem;
  margin-top: 1rem;
}

.domain-column {
  padding: 0;
  border: 1px solid rgba(24, 38, 37, 0.1);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(17, 31, 37, 0.025);
}

.domain-header {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 0;
  font-size: 1rem;
  letter-spacing: 0;
  text-align: center;
}

.domain-logic .domain-header {
  background: #fff1d4;
  color: #9a6500;
}

.domain-spatial .domain-header {
  background: #edf3ff;
  color: #164eae;
}

.domain-processing .domain-header {
  background: #e9f7f1;
  color: #087461;
}

.domain-games {
  gap: 0;
}

.game-tile {
  min-height: 6.05rem;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(24, 38, 37, 0.08);
  border-radius: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  text-align: left;
  box-shadow: none;
}

.game-tile:last-child {
  border-bottom: 0;
}

.game-tile:hover {
  transform: none;
  background: #fbfdfc;
  box-shadow: none;
}

.tile-icon-wrap {
  width: 4.15rem;
  height: 4.15rem;
  border-radius: 14px;
  background: transparent;
  filter: drop-shadow(0 8px 12px rgba(17, 31, 37, 0.08));
}

.tile-icon-wrap img {
  width: 100%;
  height: 100%;
}

.game-tile h4 {
  margin: 0;
  color: #111f30;
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1.15;
}

.tile-skill {
  margin: 0.24rem 0 0;
  color: #536271;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.2;
}

.game-tile-hit {
  grid-column: 3;
  grid-row: 1 / span 2;
  justify-self: end;
  align-self: center;
  width: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: transparent;
  font-size: 0;
  box-shadow: none;
}

.game-tile-hit::after {
  content: "›";
  color: var(--domain-action-color, #087461);
  font-size: 2rem;
  line-height: 1;
}

.domain-logic {
  --domain-action-color: #9a6500;
}

.domain-spatial {
  --domain-action-color: #164eae;
}

.domain-processing {
  --domain-action-color: #087461;
}

.game-tile-hit:hover,
.game-tile-hit:active {
  transform: none;
  background: #f2f6f5;
  box-shadow: none;
}

.menu-footer {
  margin-top: 0;
  padding: 0.8rem 1.3rem;
  border: 1px solid var(--kavra-line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #ffffff;
  box-shadow: none;
}

body:not(.menu-active) .card.active {
  border: 1px solid var(--kavra-line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #ffffff;
  box-shadow: none;
}

body:not(.menu-active) #game-screen.card.active,
body:not(.menu-active) #end-screen.card.active {
  box-shadow: none;
}

.menu-footer .brand-name {
  font-size: 1.1rem;
}

.footer-links a,
.footer-copy {
  font-size: 0.76rem;
}

@media (min-width: 1280px) {
  body.menu-active .app,
  body:not(.menu-active) .app,
  .top-app-shell,
  .menu-footer {
    width: min(96vw, 1500px);
  }

  .menu-shell {
    padding-inline: 1.75rem;
  }
}

@media (max-width: 1080px) {
  .landing-hero,
  .dashboard-intro,
  .mixed-grid,
  .progress-dashboard,
  .domain-grid {
    grid-template-columns: 1fr;
  }

  .landing-step:not(:last-child)::after {
    display: none;
  }

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

@media (max-width: 720px) {
  .top-app-bar {
    padding-top: 0.5rem;
  }

  .top-app-shell,
  body.menu-active .app,
  body:not(.menu-active) .app,
  .menu-footer {
    width: min(100vw - 0.8rem, 1500px);
  }

  .top-app-shell {
    min-height: 3.8rem;
    padding: 0.58rem 0.7rem;
  }

  .top-app-actions {
    gap: 0.35rem;
  }

  .brand-name {
    font-size: 1.22rem;
  }

  .auth-user-label {
    max-width: 4.2rem;
  }

  .lang-globe {
    display: none;
  }

  body.menu-active .app,
  body:not(.menu-active) .app {
    margin-top: 0;
  }

  .menu-shell {
    padding: 0.95rem 0.78rem 1rem;
  }

  .landing-hero {
    padding: 0.85rem 0.35rem 1.1rem;
  }

  .landing-hero-art {
    min-height: 215px;
    order: -1;
  }

  .landing-hero h2 {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .landing-hero-actions,
  .landing-signin-band {
    grid-template-columns: 1fr;
  }

  .landing-skill-list,
  .landing-sample-grid,
  .age-options {
    grid-template-columns: 1fr;
  }

  .landing-step img.landing-step-illustration {
    width: 6.6rem;
    height: 6.6rem;
  }

  .landing-skill-card img.landing-skill-icon {
    width: 4.35rem;
    height: 4.35rem;
  }

  .landing-signin-band {
    padding: 5.6rem 1rem 1rem;
    background:
      url("/public/assets/illustrations/mascot-brain-hero-240.webp?v=a859936975f4") top 0.9rem left 1rem / 4.1rem auto no-repeat,
      linear-gradient(90deg, #eaf9f4, #f6fbf9);
  }

  .mixed-card {
    min-height: 0;
    padding: 1.2rem;
  }

  .mixed-card-art,
  .mixed-card-secondary .mixed-card-art {
    position: static;
    order: -1;
    width: 7.2rem;
    max-width: 46%;
    margin-bottom: 0.55rem;
    transform: none;
  }

  .progress-global-panel .progress-panel-header {
    padding-inline-end: 0;
  }

  .progress-global-panel > .progress-count {
    position: static;
    margin-top: 0.45rem;
    text-align: left;
  }

  .skill-progress-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .skill-progress-score {
    grid-column: 3;
    grid-row: 1 / span 2;
    justify-self: end;
    margin-top: 0;
  }

  .game-tile {
    min-height: 5.55rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.85rem;
  }

  .tile-icon-wrap {
    width: 3.65rem;
    height: 3.65rem;
  }

  .game-tile h4 {
    font-size: 0.92rem;
  }

  .tile-skill {
    font-size: 0.76rem;
  }

  .game-tile-hit {
    grid-column: 3;
    grid-row: 1 / span 2;
    justify-self: end;
  }
}

/* Action cards tuned to the latest Kavra design reference. */
.mixed-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 2vw, 1.8rem);
  margin-top: 1.55rem;
}

.mixed-card {
  min-height: clamp(18.25rem, 24vw, 21rem);
  padding: clamp(2rem, 3vw, 2.55rem);
  border-radius: 10px;
  isolation: isolate;
}

.mixed-card::before,
.mixed-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.mixed-card > :not(.mixed-card-art) {
  z-index: 3;
}

.mixed-card h2 {
  margin-top: 0.38rem;
  font-size: clamp(2.38rem, 3.5vw, 3.45rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
}

.mixed-description {
  max-width: 20rem;
  margin-top: 0.15rem;
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.42;
}

.chip-label {
  min-height: 1.75rem;
  padding: 0.28rem 0.78rem;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.mixed-action-btn {
  width: min(100%, 19rem);
  min-height: 4.05rem;
  margin-top: 1.3rem;
  padding: 0.9rem 1.45rem;
  border-radius: 10px;
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: 0;
}

.mixed-action-btn .material-symbols-outlined {
  font-size: 2rem;
  font-weight: 500;
}

.mixed-card-primary {
  padding-inline-end: clamp(21rem, 31vw, 27rem);
  border: 0;
  background:
    radial-gradient(circle at 63% 21%, rgba(255, 255, 255, 0.11) 0 1.2rem, transparent 1.26rem),
    radial-gradient(circle at 96% 18%, #ffd956 0 0.26rem, transparent 0.31rem),
    radial-gradient(circle at 61% 45%, #ffc83d 0 0.56rem, transparent 0.61rem),
    linear-gradient(155deg, rgba(4, 95, 78, 0.16), transparent 45%),
    linear-gradient(135deg, #00866d 0%, #04a680 100%);
  box-shadow: 0 22px 36px rgba(4, 105, 83, 0.24);
}

.mixed-card-primary::before {
  inset: auto -8% -45% 41%;
  height: 73%;
  border-radius: 50% 50% 0 0;
  background: rgba(0, 84, 68, 0.18);
  z-index: 0;
}

.mixed-card-primary::after {
  right: clamp(7rem, 15vw, 12rem);
  bottom: 2.65rem;
  width: clamp(10.5rem, 18vw, 16rem);
  height: clamp(3.1rem, 5vw, 4.4rem);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(81, 207, 174, 0.76), rgba(11, 139, 112, 0.78));
  box-shadow: 0 18px 22px rgba(0, 62, 49, 0.22);
  z-index: 1;
}

.mixed-card-primary h2,
.mixed-card-primary .mixed-description {
  color: #ffffff;
}

.mixed-card-primary .chip-label {
  background: rgba(255, 255, 255, 0.17);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.mixed-card-primary .mixed-card-art {
  right: clamp(1.7rem, 3vw, 2.7rem);
  top: 49%;
  width: clamp(18.5rem, 28vw, 24.5rem);
  max-width: 56%;
  transform: translateY(-50%) rotate(5deg);
  filter: drop-shadow(0 22px 26px rgba(0, 55, 46, 0.22));
  z-index: 2;
}

.mixed-start-btn,
.mixed-start-btn:hover {
  background: #ffffff;
  color: #087461;
  box-shadow: 0 14px 24px rgba(0, 53, 43, 0.18);
}

.mixed-card-secondary {
  padding-inline-end: clamp(22rem, 32vw, 29rem);
  border: 1px solid rgba(41, 117, 202, 0.22);
  background:
    radial-gradient(circle at 56% 23%, #77bdff 0 0.43rem, transparent 0.49rem),
    radial-gradient(circle at 53% 66%, #67b6ff 0 0.48rem, transparent 0.54rem),
    linear-gradient(135deg, #f7fbff 0%, #edf6ff 100%);
  box-shadow: 0 16px 28px rgba(52, 122, 200, 0.13);
}

.mixed-card-secondary::before {
  right: clamp(8.8rem, 17vw, 15.5rem);
  top: 19%;
  width: clamp(16rem, 29vw, 27rem);
  height: 61%;
  background:
    linear-gradient(90deg, transparent, rgba(77, 145, 219, 0.18) 18%, rgba(255, 255, 255, 0.65) 56%, transparent),
    linear-gradient(90deg, transparent, rgba(44, 116, 197, 0.13) 24%, transparent 72%),
    linear-gradient(90deg, transparent, rgba(44, 116, 197, 0.11) 12%, transparent 62%);
  background-size: 100% 0.42rem, 82% 0.34rem, 70% 0.3rem;
  background-position: 0 18%, 0 48%, 0 76%;
  background-repeat: no-repeat;
  z-index: 0;
}

.mixed-card-secondary::after {
  right: clamp(1.35rem, 2.6vw, 2.4rem);
  bottom: clamp(1.55rem, 2.4vw, 2.1rem);
  width: 3.85rem;
  height: 3.85rem;
  border-radius: 50%;
  background:
    url("/public/assets/icons/skills/speed-memory.svg?v=21e588739540") center / 1.65rem 1.65rem no-repeat,
    #ffffff;
  box-shadow: 0 12px 22px rgba(47, 107, 190, 0.2);
  z-index: 3;
}

.mixed-card-secondary h2 {
  color: #111f30;
}

.mixed-card-secondary .mixed-description {
  color: #203247;
}

.mixed-card-secondary .chip-label {
  background: #dcecff;
  color: #0a61c9;
}

.mixed-card-secondary .mixed-card-art {
  right: clamp(3.2rem, 6vw, 5rem);
  top: 50%;
  width: clamp(18rem, 28vw, 24.5rem);
  max-width: 53%;
  transform: translateY(-50%);
  filter: drop-shadow(0 22px 24px rgba(38, 92, 153, 0.16));
  z-index: 2;
}

.mixed-full-btn,
.mixed-full-btn:hover {
  border: 0;
  background: linear-gradient(180deg, #1979e9, #075ecf);
  color: #ffffff;
  box-shadow: 0 14px 24px rgba(12, 95, 205, 0.22);
}

@media (max-width: 1180px) {
  .mixed-card {
    min-height: 17rem;
  }

  .mixed-card-primary {
    padding-inline-end: clamp(17rem, 28vw, 22rem);
  }

  .mixed-card-secondary {
    padding-inline-end: clamp(17.5rem, 29vw, 23rem);
  }

  .mixed-card h2 {
    font-size: clamp(2rem, 3.2vw, 2.8rem);
  }

  .mixed-description {
    font-size: 1rem;
  }
}

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

@media (max-width: 720px) {
  .mixed-card {
    min-height: 0;
    padding: 1.35rem;
    padding-inline-end: 1.35rem;
  }

  .mixed-card-primary,
  .mixed-card-secondary {
    padding-inline-end: 1.35rem;
  }

  .mixed-card h2 {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  .mixed-description {
    max-width: none;
  }

  .mixed-card-primary .mixed-card-art,
  .mixed-card-secondary .mixed-card-art {
    position: relative;
    right: auto;
    top: auto;
    order: -1;
    align-self: center;
    width: min(78vw, 16rem);
    max-width: 100%;
    margin: 0 0 0.5rem;
    transform: none;
  }

  .mixed-card-primary::after {
    right: 50%;
    bottom: auto;
    top: 13.5rem;
    width: 12rem;
    height: 3.2rem;
    transform: translateX(50%);
  }

  .mixed-card-secondary::before {
    top: 7.4rem;
    right: 1rem;
    width: 80%;
  }

  .mixed-card-secondary::after {
    width: 3.2rem;
    height: 3.2rem;
  }

  .mixed-action-btn {
    width: 100%;
    min-height: 3.5rem;
  }
}

/* Authenticated skill coaching cards. */
.progress-coaching-dashboard {
  grid-template-columns: 1fr;
}

.progress-coaching-panel {
  display: grid;
  gap: 1rem;
}

.progress-coaching-panel .progress-panel-header {
  align-items: center;
}

.progress-coaching-panel .progress-count {
  position: static;
  margin: -0.35rem 0 0;
  color: #536271;
  font-size: 0.82rem;
  text-align: left;
}

.progress-coaching-panel .progress-summary {
  margin: 0;
  font-size: 0.82rem;
}

.progress-coaching-panel .skill-breakdown-list {
  margin-top: 0.15rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.progress-coaching-panel .skill-progress-item {
  min-height: 0;
  padding: 0.92rem;
  border: 1px solid rgba(24, 38, 37, 0.1);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.78rem;
  background: #ffffff;
  box-shadow: none;
}

.progress-coaching-panel .skill-progress-header {
  grid-column: auto;
  grid-row: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
}

.progress-coaching-panel .skill-progress-icon {
  width: 2.75rem;
  height: 2.75rem;
}

.progress-coaching-panel .skill-progress-item h3 {
  margin: 0;
  color: #111f30;
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
}

.progress-coaching-panel .skill-progress-status {
  grid-column: 1 / -1;
  grid-row: auto;
  justify-self: start;
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 0.42rem;
  padding: 0.38rem 0.55rem;
  border-radius: 8px;
  background: #eaf7f1;
  color: #536271;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: left;
}

.progress-coaching-panel .skill-progress-status strong {
  color: #087461;
  font-size: 0.72rem;
}

.skill-progress-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.skill-progress-stat {
  min-width: 0;
  min-height: 4.25rem;
  padding: 0.65rem;
  border-radius: 8px;
  background: #f5f8f7;
  display: grid;
  align-content: center;
  gap: 0.25rem;
}

.skill-progress-stat span {
  color: #536271;
  font-size: 0.68rem;
  font-weight: 800;
}

.skill-progress-stat strong {
  color: #111f30;
  font-size: 1rem;
  line-height: 1.1;
}

.skill-progress-outlook,
.skill-progress-suggestion {
  margin: 0;
  color: #536271;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
}

.skill-progress-outlook strong,
.skill-progress-suggestion strong {
  color: #111f30;
}

@media (max-width: 1080px) {
  .progress-coaching-panel .skill-breakdown-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .progress-coaching-panel .progress-panel-header {
    align-items: flex-start;
  }

  .progress-coaching-panel .skill-progress-item {
    padding: 0.85rem;
  }

  .skill-progress-stats {
    grid-template-columns: 1fr;
  }
}

/* Shared skill icon treatment for progress and game-list sections. */
.progress-coaching-panel .skill-progress-icon {
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 8px;
  object-fit: cover;
}

.domain-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  justify-content: start;
  gap: 0.72rem;
  text-align: left;
  cursor: pointer;
}

.domain-header .domain-skill-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
}

.domain-header span {
  min-width: 0;
}

.domain-quick-btn {
  width: 2.25rem;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  color: currentColor;
  box-shadow: inset 0 0 0 1px rgba(17, 31, 37, 0.08);
  font-size: 2rem;
  line-height: 1;
}

.domain-quick-btn:hover,
.domain-quick-btn:active {
  transform: none;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(17, 31, 37, 0.14);
}

.domain-quick-btn:focus-visible {
  outline: 3px solid rgba(8, 116, 97, 0.3);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .progress-coaching-panel .skill-progress-icon {
    width: 3.8rem;
    height: 3.8rem;
  }

  .domain-header .domain-skill-icon {
    width: 2.65rem;
    height: 2.65rem;
  }
}

/* Compact authenticated session chooser. */
.mixed-grid {
  margin-top: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.mixed-card {
  min-height: 13.5rem;
  padding: 1.25rem;
  padding-inline-end: clamp(10rem, 18vw, 14rem);
  border: 1px solid rgba(24, 38, 37, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 31, 37, 0.035);
  overflow: hidden;
}

.mixed-card::before,
.mixed-card::after {
  display: none;
}

.mixed-card h2 {
  margin-top: 0.55rem;
  color: #111f30;
  font-size: clamp(1.55rem, 2.25vw, 2.1rem);
  line-height: 1.04;
  font-weight: 900;
}

.mixed-description {
  max-width: 15.5rem;
  margin-top: 0.32rem;
  color: #536271;
  font-size: 0.94rem;
  line-height: 1.36;
}

.mixed-card .chip-label {
  width: fit-content;
  min-height: 1.8rem;
  padding: 0.35rem 0.72rem;
  border-radius: 8px;
  background: #eef5f3;
  color: #087461;
  font-size: 0.76rem;
  font-weight: 850;
}

.mixed-card-art,
.mixed-card-primary .mixed-card-art,
.mixed-card-secondary .mixed-card-art {
  right: clamp(1rem, 2.2vw, 1.45rem);
  top: 50%;
  width: clamp(8rem, 14vw, 11.5rem);
  max-width: 38%;
  transform: translateY(-50%);
  filter: drop-shadow(0 14px 20px rgba(17, 31, 37, 0.12));
  z-index: 2;
}

.mixed-card-primary {
  padding-inline-end: clamp(10rem, 18vw, 14rem);
  border-color: rgba(8, 116, 97, 0.18);
  background:
    linear-gradient(90deg, rgba(8, 116, 97, 0.08), transparent 42%),
    #ffffff;
  box-shadow: 0 10px 24px rgba(8, 116, 97, 0.06);
}

.mixed-card-primary h2,
.mixed-card-primary .mixed-description {
  color: #111f30;
}

.mixed-card-primary .chip-label {
  background: #e5f6ef;
  color: #087461;
  backdrop-filter: none;
}

.mixed-card-secondary {
  padding-inline-end: clamp(10rem, 18vw, 14rem);
  border-color: rgba(45, 97, 200, 0.18);
  background:
    linear-gradient(90deg, rgba(45, 97, 200, 0.07), transparent 42%),
    #ffffff;
  box-shadow: 0 10px 24px rgba(45, 97, 200, 0.055);
}

.mixed-card-secondary .chip-label {
  background: #e8f1ff;
  color: #2d61c8;
}

.mixed-action-btn {
  width: fit-content;
  min-width: 11rem;
  min-height: 2.9rem;
  margin-top: 1rem;
  padding: 0.68rem 0.82rem 0.68rem 1rem;
  border-radius: 8px;
  gap: 1.1rem;
  font-size: 0.9rem;
  font-weight: 850;
  justify-content: space-between;
}

.mixed-action-btn .material-symbols-outlined {
  font-size: 1.45rem;
}

.mixed-start-btn,
.mixed-start-btn:hover {
  border: 1px solid rgba(8, 116, 97, 0.28);
  background: #087461;
  color: #ffffff;
  box-shadow: none;
}

.mixed-full-btn,
.mixed-full-btn:hover {
  border: 1px solid rgba(45, 97, 200, 0.26);
  background: #2d61c8;
  color: #ffffff;
  box-shadow: none;
}

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

@media (max-width: 720px) {
  .mixed-card,
  .mixed-card-primary,
  .mixed-card-secondary {
    min-height: 0;
    padding: 1rem;
    padding-inline-end: 1rem;
  }

  .mixed-card-art,
  .mixed-card-primary .mixed-card-art,
  .mixed-card-secondary .mixed-card-art {
    position: static;
    width: min(48vw, 8rem);
    max-width: 100%;
    margin-bottom: 0.65rem;
    transform: none;
  }

  .mixed-card h2 {
    font-size: clamp(1.55rem, 8vw, 2.05rem);
  }

  .mixed-description {
    max-width: none;
    width: 100%;
  }

  .mixed-action-btn {
    width: 100%;
  }
}

/* Side-by-side top session backgrounds. */
.mixed-grid {
  margin-top: 1.45rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.mixed-card {
  position: relative;
  overflow: hidden;
  min-height: clamp(15rem, 24vw, 18.5rem);
  padding: clamp(1.25rem, 2vw, 1.8rem);
  padding-inline-end: clamp(11rem, 24vw, 20rem);
  display: grid;
  grid-template-rows: auto auto auto minmax(0.8rem, 1fr) auto;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.mixed-card::before {
  display: none;
}

.mixed-card::after {
  display: none;
}

.mixed-card-primary {
  padding-inline-end: clamp(11rem, 24vw, 20rem);
  border-color: rgba(8, 116, 97, 0.16);
  background-color: #f3fbf5;
  background-image: url("/public/assets/illustrations/daily-training-bg-1100.webp?v=a51affb326bd");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 10px 24px rgba(8, 116, 97, 0.055);
}

.mixed-card-secondary {
  padding-inline-end: clamp(11rem, 24vw, 20rem);
  border-color: rgba(45, 97, 200, 0.16);
  background-color: #f3f8ff;
  background-image: url("/public/assets/illustrations/quick-game-bg-1100.webp?v=66bf0463bdc4");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 10px 24px rgba(45, 97, 200, 0.055);
}

.mixed-card-art,
.mixed-card-primary .mixed-card-art,
.mixed-card-secondary .mixed-card-art {
  display: none;
}

.mixed-card .chip-label,
.mixed-card h2,
.mixed-description,
.mixed-action-btn {
  grid-column: 1;
  z-index: 2;
}

.mixed-card .chip-label {
  grid-row: 1;
}

.mixed-card h2 {
  grid-row: 2;
  max-width: 14rem;
  font-size: clamp(1.65rem, 2.55vw, 2.35rem);
}

.mixed-description {
  grid-row: 3;
  max-width: 14rem;
  font-size: clamp(0.9rem, 1.15vw, 1rem);
}

.mixed-action-btn {
  grid-row: 5;
  align-self: end;
  margin-top: 1rem;
}

@media (max-width: 1120px) {
  .mixed-card,
  .mixed-card-primary,
  .mixed-card-secondary {
    padding-inline-end: clamp(8rem, 18vw, 11rem);
  }

  .mixed-card-primary,
  .mixed-card-secondary {
    background-size: cover;
  }
}

@media (max-width: 860px) {
  .mixed-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mixed-card,
  .mixed-card-primary,
  .mixed-card-secondary {
    min-height: 15rem;
    padding-inline-end: clamp(9rem, 32vw, 15rem);
  }

  .mixed-card-primary,
  .mixed-card-secondary {
    background-size: cover;
  }
}

@media (max-width: 720px) {
  .mixed-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mixed-card,
  .mixed-card-primary,
  .mixed-card-secondary {
    min-height: 15rem;
    padding: 1rem;
    padding-inline-end: clamp(8rem, 38vw, 12rem);
  }

  .mixed-card-primary,
  .mixed-card-secondary {
    background-position: center;
    background-size: cover;
  }

  .mixed-card .chip-label,
  .mixed-card h2,
  .mixed-description,
  .mixed-action-btn {
    grid-column: 1;
    grid-row: auto;
  }

  .mixed-card h2,
  .mixed-description {
    max-width: 12rem;
  }
}

/* Kavra homepage button system. */
.mixed-action-btn,
.age-btn,
.game-tile,
.game-tile-hit,
.tile-icon-wrap,
.game-tile-hit::before,
.game-tile-hit::after {
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(.2,.8,.2,1);
}

.mixed-action-btn {
  position: relative;
  overflow: hidden;
  min-height: 3.05rem;
  padding: 0.72rem 0.7rem 0.72rem 1.08rem;
  border-radius: 15px;
  border: 1px solid transparent;
  background-size: 135% 135%;
  background-position: 0% 50%;
  box-shadow:
    0 13px 22px rgba(17, 31, 37, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  transition-property: transform, box-shadow, background-position;
}

.mixed-action-btn::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 45%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent);
  pointer-events: none;
}

.mixed-action-btn > span {
  position: relative;
  z-index: 1;
}

.mixed-action-btn .material-symbols-outlined {
  width: 2.1rem;
  height: 2.1rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 5px 10px rgba(17, 31, 37, 0.12);
  transition: transform 160ms cubic-bezier(.2,.8,.2,1), background-color 160ms cubic-bezier(.2,.8,.2,1);
}

.mixed-start-btn,
.mixed-start-btn:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background-image: linear-gradient(135deg, #0b6f59 0%, #11a982 52%, #0a8066 100%);
  color: #ffffff;
  box-shadow:
    0 13px 22px rgba(8, 116, 97, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.mixed-full-btn,
.mixed-full-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background-image: linear-gradient(135deg, #174fae 0%, #2f7ff2 54%, #1766d4 100%);
  color: #ffffff;
  box-shadow:
    0 13px 22px rgba(45, 97, 200, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.mixed-start-btn:hover,
.mixed-full-btn:hover {
  transform: none;
  background-position: 82% 50%;
}

.mixed-start-btn:hover {
  box-shadow:
    0 18px 30px rgba(8, 116, 97, 0.27),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.mixed-full-btn:hover {
  box-shadow:
    0 18px 30px rgba(45, 97, 200, 0.27),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.mixed-action-btn:hover .material-symbols-outlined {
  transform: none;
  background: rgba(255, 255, 255, 0.24);
}

.mixed-action-btn:active {
  transform: translateY(0) scale(0.98);
}

.mixed-action-btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.78);
  outline-offset: 3px;
  box-shadow:
    0 0 0 4px rgba(8, 116, 97, 0.24),
    0 15px 26px rgba(17, 31, 37, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.age-options {
  position: relative;
  isolation: isolate;
  gap: 0.65rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.age-options::before {
  display: none;
}

.age-btn {
  position: relative;
  z-index: 1;
  min-height: 2.5rem;
  border: 1px solid rgba(8, 116, 97, 0.22);
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 252, 250, 0.92));
  color: #1f3431;
  box-shadow:
    0 10px 18px rgba(17, 31, 37, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transition-property: border-color, background-color, color, box-shadow, transform, background-position;
}

.age-btn:hover {
  transform: none;
  border-color: rgba(8, 116, 97, 0.34);
  background:
    linear-gradient(180deg, rgba(246, 253, 249, 0.98), rgba(235, 249, 243, 0.98));
  box-shadow:
    0 12px 22px rgba(8, 116, 97, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.age-btn.active,
.age-btn[aria-pressed="true"] {
  border-color: rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 46%),
    linear-gradient(135deg, #0b6f59 0%, #11a982 52%, #0a8066 100%);
  background-size: 135% 135%;
  background-position: 0% 50%;
  color: #ffffff;
  box-shadow:
    0 13px 22px rgba(8, 116, 97, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.age-btn.active:hover,
.age-btn[aria-pressed="true"]:hover {
  transform: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 48%),
    linear-gradient(135deg, #0b6f59 0%, #11a982 52%, #0a8066 100%);
  background-position: 82% 50%;
  color: #ffffff;
  box-shadow:
    0 15px 26px rgba(8, 116, 97, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.age-btn:active {
  transform: scale(0.985);
}

.age-btn:focus-visible {
  outline: 3px solid rgba(8, 116, 97, 0.3);
  outline-offset: 3px;
}

.game-tile {
  cursor: pointer;
  transition-property: background-color;
}

.game-tile:hover,
.game-tile:focus-within {
  background: rgba(8, 116, 97, 0.045);
}

.domain-logic .game-tile:hover,
.domain-logic .game-tile:focus-within {
  background: rgba(154, 101, 0, 0.055);
}

.domain-spatial .game-tile:hover,
.domain-spatial .game-tile:focus-within {
  background: rgba(22, 78, 174, 0.05);
}

.game-tile:hover .tile-icon-wrap,
.game-tile:focus-within .tile-icon-wrap {
  transform: translateY(-2px) scale(1.035);
  filter: drop-shadow(0 10px 14px rgba(17, 31, 37, 0.11));
}

.tile-icon-wrap {
  overflow: hidden;
}

.tile-icon-wrap img {
  width: calc(100% + 6px);
  height: calc(100% + 6px);
  max-width: none;
  margin: -3px;
  border-radius: inherit;
  object-fit: cover;
}

.game-tile-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  box-shadow: none;
  transition-property: background-color, transform, box-shadow;
}

.game-tile-hit::before,
.game-tile-hit::after {
  position: absolute;
  top: 50%;
}

.game-tile-hit::before {
  content: "";
  right: 0.88rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: transparent;
  transform: translateY(-50%);
  transition-property: background-color, transform;
}

.game-tile-hit::after {
  content: "";
  right: 1.69rem;
  width: 0.48rem;
  height: 0.48rem;
  border-top: 2px solid var(--domain-action-color, #087461);
  border-right: 2px solid var(--domain-action-color, #087461);
  transform: translateY(-50%) rotate(45deg);
  transition-property: transform, border-color;
}

.game-tile-hit:hover,
.game-tile-hit:active {
  transform: none;
  background: transparent;
  box-shadow: none;
}

.game-tile:hover .game-tile-hit::before,
.game-tile-hit:hover::before,
.game-tile:focus-within .game-tile-hit::before {
  background: rgba(8, 116, 97, 0.08);
}

.domain-logic .game-tile:hover .game-tile-hit::before,
.domain-logic .game-tile-hit:hover::before,
.domain-logic .game-tile:focus-within .game-tile-hit::before {
  background: rgba(154, 101, 0, 0.1);
}

.domain-spatial .game-tile:hover .game-tile-hit::before,
.domain-spatial .game-tile-hit:hover::before,
.domain-spatial .game-tile:focus-within .game-tile-hit::before {
  background: rgba(22, 78, 174, 0.09);
}

.game-tile:hover .game-tile-hit::before,
.game-tile:hover .game-tile-hit::after,
.game-tile-hit:hover::before,
.game-tile:focus-within .game-tile-hit::before,
.game-tile:focus-within .game-tile-hit::after {
  transform: translateY(-50%);
}

.game-tile:hover .game-tile-hit::after,
.game-tile-hit:hover::after,
.game-tile:focus-within .game-tile-hit::after {
  transform: translateY(-50%) rotate(45deg);
}

.game-tile-hit:focus-visible {
  outline: 3px solid rgba(8, 116, 97, 0.32);
  outline-offset: -4px;
}

@media (max-width: 720px) {
  .age-options::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mixed-action-btn,
  .mixed-action-btn::before,
  .mixed-action-btn .material-symbols-outlined,
  .age-options::before,
  .age-btn,
  .game-tile,
  .game-tile-hit,
  .game-tile-hit::before,
  .game-tile-hit::after,
  .tile-icon-wrap {
    transition-duration: 1ms;
  }

  .mixed-start-btn:hover,
  .mixed-full-btn:hover,
  .mixed-action-btn:hover .material-symbols-outlined,
  .mixed-action-btn:active,
  .age-btn:active,
  .game-tile:hover .tile-icon-wrap,
  .game-tile:focus-within .tile-icon-wrap,
  .game-tile:hover .game-tile-hit::before,
  .game-tile-hit:hover::before,
  .game-tile:focus-within .game-tile-hit::before {
    transform: none;
  }

  .game-tile:hover .game-tile-hit::after,
  .game-tile-hit:hover::after,
  .game-tile:focus-within .game-tile-hit::after {
    transform: translateY(-50%) rotate(45deg);
  }
}

/* Cleaner section hierarchy for the authenticated dashboard. */
.progress-coaching-panel {
  gap: 1.15rem;
}

.progress-coaching-panel .progress-panel-header {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(17, 31, 48, 0.1);
}

.progress-coaching-panel .progress-panel-header h2,
.section-heading-title,
.single-games-title {
  color: #111f30;
  font-size: clamp(1.85rem, 2.7vw, 2.45rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading {
  margin: 0 0 1.3rem;
  text-align: left;
}

.progress-section-subtitle {
  margin: 0.45rem 0 0;
  max-width: 38rem;
  color: #536271;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.4;
}

.section-heading-subtitle {
  margin: 0.45rem 0 0;
  max-width: 38rem;
  text-align: left;
  color: #536271;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.4;
}

.progress-coaching-panel [data-progress-window-label],
.progress-coaching-panel > .progress-count,
.progress-coaching-panel .progress-panel-header > .progress-status,
.progress-coaching-panel > .progress-summary {
  display: none;
}

.single-games-section {
  margin-top: 2.35rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(17, 31, 48, 0.1);
}

.single-games-title {
  margin: 0;
  text-align: left;
  text-transform: none;
}

.single-games-subtitle {
  margin: 0.45rem 0 0;
  max-width: 38rem;
  text-align: left;
  color: #536271;
  font-size: 0.95rem;
  font-weight: 650;
}

.single-games-underline {
  display: none;
}

.domain-grid {
  margin-top: 1.3rem;
}

.section-heading + .domain-grid {
  margin-top: 0;
}

.progress-coaching-panel .skill-progress-item {
  --skill-accent: rgba(8, 116, 97, 0.22);
  --skill-soft: rgba(8, 116, 97, 0.08);
  --skill-stat: #ffffff;
  border-color: var(--skill-accent);
  background: #ffffff;
  overflow: hidden;
}

.progress-coaching-panel .skill-progress-header {
  margin: -0.92rem -0.92rem 0;
  padding: 0.92rem;
  background: var(--skill-soft);
  border-bottom: 1px solid var(--skill-accent);
}

.progress-coaching-panel .skill-progress-pattern_logic {
  --skill-accent: rgba(179, 123, 0, 0.26);
  --skill-soft: #fff3d9;
}

.progress-coaching-panel .skill-progress-spatial_visual {
  --skill-accent: rgba(51, 83, 156, 0.26);
  --skill-soft: #edf3ff;
}

.progress-coaching-panel .skill-progress-processing_memory {
  --skill-accent: rgba(15, 122, 69, 0.24);
  --skill-soft: #eaf8f1;
}

.progress-coaching-panel .skill-progress-header {
  gap: 0.85rem;
}

.progress-coaching-panel .skill-progress-icon,
.domain-header .domain-skill-icon {
  width: 5rem;
  height: 5rem;
}

.progress-coaching-panel .skill-progress-item h3 {
  font-size: 1.08rem;
  font-weight: 900;
}

.domain-header {
  gap: 0.95rem;
}

.domain-header span {
  font-size: 1.08rem;
  font-weight: 900;
}

.skill-progress-stat {
  background: var(--skill-stat);
}

@media (max-width: 720px) {
  .progress-coaching-panel .progress-panel-header h2,
  .section-heading-title,
  .single-games-title {
    font-size: 1.65rem;
  }

  .single-games-section {
    margin-top: 1.8rem;
    padding-top: 1.1rem;
  }

  .progress-coaching-panel .skill-progress-icon,
  .domain-header .domain-skill-icon {
    width: 4.2rem;
    height: 4.2rem;
  }
}

/* Age selector refinement. */
.age-picker {
  display: grid;
  gap: 0.48rem;
  justify-self: end;
  width: min(100%, 34rem);
  max-width: 34rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.age-picker .eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #111f30;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.age-info-icon {
  width: 1.05rem;
  height: 1.05rem;
  border-color: rgba(17, 31, 48, 0.28);
  background: #ffffff;
  color: #536271;
  font-size: 0.66rem;
  font-weight: 900;
}

.age-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.28rem;
  padding: 0.26rem;
  border: 1px solid rgba(8, 116, 97, 0.12);
  border-radius: 8px;
  background: #eef6f2;
}

.age-picker .age-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.34rem;
  min-height: 2.24rem;
  padding: 0.42rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #253735;
  font-size: 0.78rem;
  line-height: 1.1;
  text-align: center;
  box-shadow: none;
}

.age-picker .age-btn::before {
  display: none;
}

.age-picker .age-btn::after {
  display: none;
}

.age-btn-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.age-btn-range {
  flex: 0 0 auto;
  min-width: 2.05rem;
  padding: 0.2rem 0.32rem;
  border-radius: 999px;
  background: rgba(17, 31, 48, 0.07);
  color: #536271;
  font-size: 0.68rem;
  font-weight: 900;
  text-align: center;
}

.age-picker .age-btn:hover {
  transform: none;
  border-color: rgba(8, 116, 97, 0.18);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: none;
}

.age-picker .age-btn.active,
.age-picker .age-btn[aria-pressed="true"] {
  border-color: rgba(8, 116, 97, 0.26);
  background: #ffffff;
  color: #0c604f;
  box-shadow: 0 3px 8px rgba(8, 116, 97, 0.1);
}

.age-picker .age-btn.active .age-btn-range,
.age-picker .age-btn[aria-pressed="true"] .age-btn-range {
  background: #e4f5ef;
  color: #087461;
}

.age-picker .age-btn:active,
.age-picker .age-btn.active:hover,
.age-picker .age-btn[aria-pressed="true"]:hover {
  transform: none;
}

.age-picker .age-btn:focus-visible {
  outline: 3px solid rgba(8, 116, 97, 0.28);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .age-options {
    grid-template-columns: 1fr;
  }
}

/* Anonymous page alignment with the authenticated dashboard. */
.landing-overview {
  gap: 1.45rem;
}

.landing-hero {
  min-height: 22rem;
  padding: clamp(1.45rem, 3vw, 2rem);
  border: 1px solid var(--kavra-line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.94) 34%, rgba(255, 255, 255, 0.46) 56%, rgba(255, 255, 255, 0.05) 100%),
    url("/public/assets/illustrations/anon-brain-1400.webp?v=0555099d9d1f") center / cover no-repeat,
    #ffffff;
  box-shadow: 0 10px 24px rgba(17, 31, 37, 0.024);
  overflow: hidden;
}

.landing-hero-copy {
  max-width: 34rem;
}

.landing-hero h2 {
  color: #111f30;
  font-size: clamp(2.45rem, 5vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.landing-hero-copy p {
  max-width: 32rem;
  color: #536271;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.45;
}

.landing-hero-art {
  display: none;
}

.landing-hero-brain {
  width: min(28rem, 44vw);
  max-height: 17rem;
  object-fit: contain;
}

.landing-hero-actions {
  gap: 0.7rem;
}

.landing-hero .btn,
.landing-signin-band .btn {
  min-height: 3.05rem;
  border-radius: 8px;
  font-weight: 900;
}

.landing-hero .btn.primary,
.landing-signin-band .btn.primary {
  background: #099477;
  color: #ffffff;
  box-shadow: 0 13px 22px rgba(8, 116, 97, 0.16);
}

.landing-hero .btn.secondary {
  border-color: rgba(8, 116, 97, 0.36);
  background: #ffffff;
  color: #087461;
  box-shadow: none;
}

.landing-how {
  padding: 1.15rem;
  border: 1px solid var(--kavra-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 31, 37, 0.024);
}

.landing-how h2 {
  margin: 0;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(17, 31, 48, 0.1);
  color: #111f30;
  font-size: clamp(1.85rem, 2.7vw, 2.45rem);
  font-weight: 900;
  line-height: 1.05;
  text-align: left;
  letter-spacing: 0;
}

.landing-steps,
.landing-steps--illustrated {
  position: static;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.landing-steps--illustrated::before {
  display: none;
}

.landing-steps--illustrated .landing-step:not(:last-child)::after {
  display: none;
}

.landing-step {
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(24, 38, 37, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
  overflow: hidden;
}

.landing-step:nth-child(1) {
  --step-soft: #fff3d9;
  --step-line: rgba(179, 123, 0, 0.24);
}

.landing-step:nth-child(2) {
  --step-soft: #edf3ff;
  --step-line: rgba(51, 83, 156, 0.24);
}

.landing-step:nth-child(3) {
  --step-soft: #eaf8f1;
  --step-line: rgba(15, 122, 69, 0.22);
}

.landing-step img.landing-step-illustration {
  width: 100%;
  height: 7rem;
  margin: 0;
  padding: 1rem;
  border-bottom: 1px solid var(--step-line);
  border-radius: 0;
  background: var(--step-soft);
  object-fit: contain;
}

.landing-step h3 {
  margin: 0;
  padding: 0.85rem 0.9rem 0;
  color: #111f30;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
}

.landing-step p {
  margin: 0;
  padding: 0.35rem 0.9rem 0.95rem;
  color: #536271;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.35;
}

.landing-games-panel {
  margin-top: 0;
}

.landing-signin-band {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(13rem, 26rem);
  align-items: center;
  gap: 1.15rem;
  min-height: 5.25rem;
  padding: 0.95rem 1.15rem;
  border: 1px solid rgba(8, 116, 97, 0.13);
  border-radius: 8px;
  background: #eaf8f1;
  box-shadow: none;
}

.landing-signin-mascot {
  width: 4.2rem;
  height: 3.45rem;
  object-fit: contain;
}

.landing-signin-copy {
  min-width: 0;
}

.landing-signin-band h2 {
  margin: 0;
  color: #087461;
  font-size: 1.18rem;
  font-weight: 900;
}

.landing-signin-band p {
  margin: 0.2rem 0 0;
  color: #111f30;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.25;
}

.landing-signin-band .landing-signin-action {
  justify-self: center;
  width: clamp(11.6rem, 18vw, 15rem);
}

@media (max-width: 900px) {
  .landing-hero,
  .landing-steps,
  .landing-steps--illustrated {
    grid-template-columns: 1fr;
  }

  .landing-hero-art {
    min-height: 12rem;
  }

  .landing-hero-brain {
    width: min(22rem, 78vw);
  }
}

@media (max-width: 720px) {
  .landing-hero h2,
  .landing-how h2 {
    font-size: 1.9rem;
  }

  .landing-hero {
    min-height: 34rem;
    align-content: start;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.98) 46%, rgba(255, 255, 255, 0.7) 68%, rgba(255, 255, 255, 0.14) 100%),
      url("/public/assets/illustrations/anon-brain-1400.webp?v=0555099d9d1f") right bottom / auto 64% no-repeat,
      #ffffff;
  }

  .landing-hero-actions,
  .landing-signin-band {
    align-items: stretch;
  }

  .landing-signin-band {
    align-items: center;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 1rem;
  }

  .landing-signin-mascot {
    width: 3.8rem;
    height: 3.25rem;
  }

  .landing-signin-band .landing-signin-action {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* New anonymous "How Kavra Works" design. */
.landing-how {
  padding: clamp(1.4rem, 3vw, 2.4rem) 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.landing-how-heading {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.4rem);
  text-align: center;
}

.landing-how-badge {
  margin: 0;
  min-height: 2.15rem;
  padding: 0.42rem 0.82rem;
  border: 1px solid rgba(8, 116, 97, 0.14);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #087461;
  background: #ffffff;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.landing-how-badge-icon {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #7bcf8b;
}

.landing-how-badge-icon::before {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 2px;
  background: #ffffff;
  transform: rotate(45deg);
}

.landing-how h2 {
  margin: 0;
  padding: 0;
  border: 0;
  color: #111f30;
  font-size: clamp(2.2rem, 5vw, 4.25rem);
  font-weight: 900;
  line-height: 1.02;
  text-align: center;
  letter-spacing: 0;
}

.landing-how-accent {
  color: #099477;
}

.landing-how-subtitle {
  margin: 0;
  color: #536271;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 750;
  line-height: 1.35;
}

.landing-steps,
.landing-steps--illustrated {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-top: 0;
  padding: 0;
}

.landing-step {
  --step-accent: #087461;
  --step-soft: #effaf6;
  --step-border: rgba(8, 116, 97, 0.18);
  position: relative;
  min-height: clamp(25rem, 34vw, 34rem);
  padding: clamp(1.25rem, 2vw, 1.9rem);
  border: 1px solid var(--step-border);
  border-radius: 8px;
  background: var(--step-soft);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-items: stretch;
  gap: 1rem;
  overflow: visible;
}

.landing-step:nth-child(1) {
  --step-accent: #099477;
  --step-soft: #f0fbf7;
  --step-border: rgba(8, 116, 97, 0.2);
}

.landing-step:nth-child(2) {
  --step-accent: #2f73ef;
  --step-soft: #f3f7ff;
  --step-border: rgba(47, 115, 239, 0.22);
}

.landing-step:nth-child(3) {
  --step-accent: #7655dc;
  --step-soft: #faf7ff;
  --step-border: rgba(118, 85, 220, 0.2);
}

.landing-step:not(:last-child)::after,
.landing-steps--illustrated .landing-step:not(:last-child)::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: calc(100% - 0.05rem);
  width: clamp(1.1rem, 3vw, 2.5rem);
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--step-accent) 0 0.38rem,
    transparent 0.38rem 0.64rem
  );
  opacity: 0.42;
  transform: translateY(-50%);
  z-index: 2;
}

.landing-step:not(:last-child)::before,
.landing-steps--illustrated .landing-step:not(:last-child)::before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  right: calc(-1 * clamp(0.55rem, 1.5vw, 1.25rem));
  width: 0.9rem;
  height: 0.9rem;
  border: 3px solid var(--step-accent);
  border-radius: 999px;
  background: #ffffff;
  transform: translate(50%, -50%);
  z-index: 3;
}

.landing-step-copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  text-align: left;
}

.landing-step-number {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--step-accent) 72%, white), var(--step-accent));
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.landing-step h3 {
  margin: 0;
  padding: 0;
  color: #111f30;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  font-weight: 900;
  line-height: 1.18;
}

.landing-step p {
  margin: 0.55rem 0 0;
  padding: 0;
  max-width: 17rem;
  color: #536271;
  font-size: clamp(0.92rem, 1.3vw, 1.05rem);
  font-weight: 700;
  line-height: 1.45;
}

.landing-step img.landing-step-illustration {
  align-self: end;
  justify-self: center;
  width: min(100%, 24rem);
  height: auto;
  max-height: 19rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}

@media (max-width: 1080px) {
  .landing-steps,
  .landing-steps--illustrated {
    gap: 0.9rem;
  }

  .landing-step {
    min-height: 24rem;
  }

  .landing-step:not(:last-child)::before,
  .landing-step:not(:last-child)::after,
  .landing-steps--illustrated .landing-step:not(:last-child)::before,
  .landing-steps--illustrated .landing-step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 900px) {
  .landing-steps,
  .landing-steps--illustrated {
    grid-template-columns: 1fr;
  }

  .landing-step {
    min-height: 0;
  }

  .landing-step img.landing-step-illustration {
    max-height: 18rem;
  }
}

@media (max-width: 720px) {
  .landing-how h2 {
    font-size: 2.05rem;
  }

  .landing-how-heading {
    justify-items: start;
    text-align: left;
  }

  .landing-how-subtitle {
    font-size: 0.98rem;
  }

  .landing-step {
    padding: 1rem;
  }

  .landing-step-number {
    width: 2.55rem;
    height: 2.55rem;
    font-size: 1.15rem;
  }
}

.game-title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.game-title-row #game-name {
  min-width: 0;
}

.game-info-actions {
  position: relative;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.game-tile-copy .game-info-actions {
  margin-top: 0.38rem;
}

.game-header-info-actions {
  flex: 0 0 auto;
}

.game-info-icon-btn {
  width: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0;
  border: 1px solid rgba(8, 116, 97, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: #087461;
  display: inline-grid;
  place-items: center;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(17, 31, 37, 0.08);
}

.game-info-icon-btn .material-symbols-outlined {
  font-size: 1.1rem;
  line-height: 1;
}

.game-info-icon-btn:hover {
  background: #edf8f4;
  transform: none;
}

.game-info-icon-btn.active {
  background: #087461;
  color: #ffffff;
}

.game-info-icon-btn:focus-visible {
  outline: 3px solid rgba(8, 116, 97, 0.32);
  outline-offset: 2px;
}

.game-info-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(8, 18, 22, 0.36);
}

.game-info-dialog-backdrop[hidden] {
  display: none;
}

.game-info-dialog {
  width: min(100%, 29rem);
  padding: 1.15rem;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(17, 31, 37, 0.22);
}

.game-info-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.game-info-eyebrow {
  margin: 0 0 0.2rem;
  color: #087461;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.game-info-dialog h2,
.game-info-dialog h3,
.game-info-dialog p {
  margin: 0;
}

.game-info-dialog h2 {
  color: #14272b;
  font-size: 1.35rem;
  line-height: 1.2;
}

.game-info-close {
  width: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #eff5f3;
  color: #234145;
  display: inline-grid;
  place-items: center;
}

.game-info-close .material-symbols-outlined {
  font-size: 1.2rem;
}

.game-info-body {
  display: grid;
  gap: 0.9rem;
}

.game-info-body section {
  padding: 0.85rem;
  border: 1px solid rgba(24, 38, 37, 0.08);
  border-radius: 8px;
  background: #f8fbfa;
}

.game-info-body h3 {
  margin-bottom: 0.35rem;
  color: #087461;
  font-size: 0.92rem;
  letter-spacing: 0;
}

.game-info-body p {
  color: #415257;
  font-size: 0.96rem;
  line-height: 1.5;
}

.game-info-dialog-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
}

.game-info-status {
  color: #7a3f00;
  font-size: 0.88rem;
  font-weight: 700;
}

.exit-game-copy {
  margin: 0;
  color: #415257;
  font-size: 0.96rem;
  line-height: 1.5;
}

.exit-game-dialog-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}
