body.hub-landing .landing-main {
  min-width: 0;
}

body.hub-landing .section-hero {
  display: grid;
  gap: 14px;
}

body.hub-landing .section-eyebrow {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--section-pill-border, rgba(132, 199, 193, 0.26));
  background: rgba(255, 255, 255, 0.06);
  color: var(--section-pill-text, #e4faf5);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 0 24px var(--section-pill-glow, rgba(132, 199, 193, 0.18));
}

body.hub-landing .section-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

body.hub-landing .section-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 251, 248, 0.82);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

body.page-articulation .games-list,
body.page-language .games-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  margin-top: 0;
  padding: 0;
}

body.page-articulation .speech-game-entry,
body.page-language .speech-game-entry {
  position: relative;
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: 24px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    linear-gradient(160deg, rgba(13, 42, 46, 0.88), rgba(8, 24, 27, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 16px 28px rgba(0, 0, 0, 0.16);
}

body.page-articulation .speech-game-entry::before,
body.page-language .speech-game-entry::before {
  content: '';
  position: absolute;
  right: -16%;
  top: -28%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--section-card-glow, rgba(132, 199, 193, 0.2)), rgba(255, 255, 255, 0) 72%);
  opacity: 0.9;
  pointer-events: none;
}

body.page-articulation .speech-game-entry.is-live,
body.page-language .speech-game-entry.is-live {
  border-color: rgba(255, 255, 255, 0.12);
}

body.page-articulation .speech-game-entry.is-disabled,
body.page-language .speech-game-entry.is-disabled {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    linear-gradient(160deg, rgba(12, 35, 38, 0.82), rgba(7, 19, 22, 0.96));
}

body.page-articulation .speech-game-meta,
body.page-language .speech-game-meta {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  min-height: 0;
}

body.page-articulation .game-card-title,
body.page-language .game-card-title {
  min-width: 0;
  margin: 0;
  color: #f7fbfb;
  font-family: 'Space Grotesk', 'Trebuchet MS', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

body.page-articulation .game-card-desc,
body.page-language .game-card-desc {
  margin: 0;
  color: rgba(224, 238, 234, 0.8);
  font-size: 0.96rem;
  line-height: 1.58;
}

body.page-articulation .game-card-note,
body.page-language .game-card-note {
  margin-top: auto;
  color: #d4f5ef;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.45;
}

body.page-articulation .section-card-action,
body.page-language .section-card-action {
  position: relative;
  z-index: 1;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 11rem;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  margin-top: auto;
  padding: 12px 16px;
  border: none;
  border-radius: 999px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--section-action-bg, linear-gradient(135deg, #a6f0df 0%, #64c7b5 100%));
  color: var(--section-action-text, #08161a);
  font-family: 'Space Grotesk', 'Trebuchet MS', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.01em;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

body.page-articulation .section-card-action:hover,
body.page-articulation .section-card-action:focus-visible,
body.page-language .section-card-action:hover,
body.page-language .section-card-action:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.22);
  filter: saturate(1.05);
  outline: none;
}

body.page-articulation .section-card-action.is-disabled,
body.page-language .section-card-action.is-disabled {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(224, 238, 234, 0.74);
  box-shadow: none;
  cursor: default;
}

body.page-articulation .section-card-action.is-disabled:hover,
body.page-language .section-card-action.is-disabled:hover {
  transform: none;
  filter: none;
}

body.page-socialskills .socialskills-toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

body.page-socialskills .feelings-levels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.page-socialskills .feelings-category-btn {
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(224, 238, 234, 0.72) !important;
  font-family: 'Space Grotesk', 'Trebuchet MS', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: none;
}

body.page-socialskills .feelings-category-btn:hover,
body.page-socialskills .feelings-category-btn:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #f7fbfb !important;
  border-color: rgba(255, 255, 255, 0.12);
  transform: none;
  outline: none;
}

body.page-socialskills .feelings-category-btn.active {
  background: linear-gradient(135deg, rgba(247, 178, 103, 0.96), rgba(244, 162, 97, 0.88));
  color: #08161a !important;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.16);
}

body.page-socialskills .socialskills-groups {
  display: grid;
  gap: 18px;
}

body.page-socialskills .level-title-row {
  width: 100%;
  text-align: center;
  margin: 0 0 14px;
}

body.page-socialskills .level-title-underline {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff7f1;
  font-family: 'Space Grotesk', 'Trebuchet MS', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.page-socialskills .games-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
}

body.page-socialskills .games-list:last-of-type {
  margin-bottom: 0;
}

body.page-socialskills .game-card {
  min-height: 108px;
  padding: 14px 14px 16px;
  justify-content: flex-end;
  gap: 12px;
  font-family: 'Space Grotesk', 'Trebuchet MS', sans-serif;
  font-size: 1rem;
  line-height: 1.12;
  text-decoration: none;
}

body.page-socialskills .game-card::before {
  content: 'Scenario';
  display: block;
  margin-bottom: auto;
  color: rgba(224, 238, 234, 0.58);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.page-socialskills .instructions {
  max-width: 56ch;
  color: rgba(224, 238, 234, 0.82);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
}

@media (max-width: 1100px) {
  body.page-socialskills .games-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.page-articulation .games-list,
  body.page-language .games-list,
  body.page-socialskills .games-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.hub-landing .section-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  body.hub-landing .section-pills {
    gap: 8px;
  }

  body.hub-landing .section-pill {
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  body.page-articulation .games-list,
  body.page-language .games-list,
  body.page-socialskills .games-list {
    grid-template-columns: 1fr;
  }

  body.page-articulation .speech-game-entry,
  body.page-language .speech-game-entry {
    gap: 12px;
    padding: 18px;
    border-radius: 22px;
  }

  body.page-articulation .speech-game-meta,
  body.page-language .speech-game-meta {
    gap: 6px;
  }

  body.page-articulation .game-card-desc,
  body.page-articulation .game-card-note,
  body.page-language .game-card-desc,
  body.page-language .game-card-note {
    display: none;
  }

  body.page-socialskills .socialskills-toolbar {
    margin-bottom: 16px;
  }

  body.page-socialskills .feelings-levels {
    border-radius: 24px;
  }
}

@media (max-width: 420px) {
  body.page-articulation .speech-game-entry,
  body.page-language .speech-game-entry {
    padding: 16px;
    border-radius: 20px;
  }

  body.page-articulation .game-card-title,
  body.page-language .game-card-title {
    font-size: 1.08rem;
    line-height: 1.12;
    text-wrap: balance;
  }

  body.page-articulation .section-card-action,
  body.page-language .section-card-action {
    width: 100%;
  }

  body.page-socialskills .game-card {
    min-height: 98px;
    padding: 13px 12px 14px;
    font-size: 0.95rem;
  }
}