:root {
  --mgx-story-ink: #173847;
  --mgx-story-night: #111a35;
  --mgx-story-paper: #fffdf7;
  --mgx-story-line: rgba(39, 83, 91, .2);
  --mgx-story-yellow: #ffe07a;
  --mgx-story-mint: #9de8d3;
}

html[lang^="en"] .mgx-ja,
html:not([lang^="en"]) .mgx-en {
  display: none !important;
}

body {
  font-size: 16px;
}

body :where(p, li, dd, dt, label) {
  font-size: max(15px, .94rem) !important;
  line-height: 1.65 !important;
}

body :where(small, .mini-label, .card-label) {
  font-size: max(13px, .8rem) !important;
  line-height: 1.45 !important;
}

body :where(button, a, input, select, textarea, summary) {
  font-size: max(15px, .92rem) !important;
}

.screen :where(button, a.primary-button, a.secondary-button),
[role="dialog"] :where(button, a),
.app-menu-nav :where(button, a) {
  min-height: 48px;
}

.screen :where(h2, h3, h4),
[role="dialog"] :where(h2, h3, h4) {
  text-wrap: balance;
}

/* One route bar only when it helps the game flow. */
body[data-mgx-screen="title"] #mgx-route-bar,
body[data-mgx-screen="learn"] #mgx-route-bar {
  display: none;
}

.mgx-route-bar {
  position: static;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 56px;
  padding: 7px clamp(16px, 4vw, 54px);
  gap: 14px;
}

.mgx-route-bar > div b {
  font-size: 18px;
}

.mgx-route-bar > p {
  display: none;
}

.mgx-route-bar > button {
  min-width: 170px;
  min-height: 46px;
  font-size: 16px !important;
}

/* A reusable story chapter: content stays available without hiding the main task. */
.mgx-story-chapter {
  width: min(100%, 1180px);
  margin: 22px auto;
  overflow: clip;
  border: 1px solid var(--mgx-story-line);
  border-radius: 22px;
  color: var(--mgx-story-ink);
  background: rgba(255, 253, 247, .96);
  box-shadow: 0 16px 34px rgba(28, 63, 69, .09);
}

.mgx-story-chapter > summary {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  list-style: none;
  cursor: pointer;
  color: var(--mgx-story-ink);
  background: linear-gradient(100deg, rgba(157, 232, 211, .3), rgba(255, 224, 122, .22));
}

.mgx-story-chapter > summary::-webkit-details-marker {
  display: none;
}

.mgx-story-summary-copy {
  display: grid;
  gap: 2px;
}

.mgx-story-summary-copy b {
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.35;
}

.mgx-story-summary-copy small {
  color: #5f777c;
}

.mgx-story-summary-action {
  display: grid;
  min-width: 72px;
  min-height: 38px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--mgx-story-ink);
  font-weight: 900;
}

.mgx-story-chapter[open] .mgx-story-summary-action .mgx-ja,
.mgx-story-chapter[open] .mgx-story-summary-action .mgx-en {
  font-size: 0 !important;
}

.mgx-story-chapter[open] .mgx-story-summary-action .mgx-ja::after {
  content: "閉じる";
  font-size: 15px;
}

.mgx-story-chapter[open] .mgx-story-summary-action .mgx-en::after {
  content: "Close";
  font-size: 15px;
}

.mgx-story-chapter[open] > summary .mgx-story-summary-action {
  background: #44767b;
}

.mgx-story-content {
  display: grid;
  gap: 18px;
  padding: clamp(16px, 3vw, 28px);
}

/* Author styles must not override the native closed <details> behavior. */
.mgx-story-chapter:not([open]) > .mgx-story-content {
  display: none;
}

.mgx-home-story {
  grid-column: 1 / -1;
}

.mgx-home-story .experience-synergy-note {
  padding: 14px 16px;
  border-radius: 14px;
  color: #3f5c62;
  background: #edf7f4;
}

.mgx-home-story .title-actions,
.mgx-home-story .hype-tags {
  margin: 0;
}

/* Home: two unmistakable choices before every secondary feature. */
.title-entry-guide {
  width: 100%;
  max-width: 760px;
  padding: clamp(16px, 2vw, 24px) !important;
}

.title-entry-guide > header b {
  font-size: clamp(21px, 2.3vw, 30px) !important;
  line-height: 1.3;
}

.title-entry-guide > header p {
  margin-top: 8px;
}

.experience-choice-grid {
  gap: 14px !important;
}

.experience-choice-card {
  min-height: 180px !important;
  padding: 20px !important;
}

.experience-choice-card .experience-choice-copy b {
  font-size: clamp(25px, 3vw, 38px) !important;
}

.experience-choice-card .experience-choice-copy em,
.experience-choice-card .experience-choice-copy i,
.experience-choice-action {
  font-size: 15px !important;
  line-height: 1.5 !important;
}

@media (min-width: 901px) and (min-height: 650px) {
  .title-screen {
    min-height: 100vh;
  }

  .title-copy {
    padding-top: clamp(18px, 3vh, 30px) !important;
  }

  .title-screen .eyebrow {
    margin-bottom: 10px;
  }

  .title-screen .family-kicker {
    margin-bottom: 8px;
  }

  #title-heading {
    margin-bottom: 14px;
    font-size: clamp(41px, 4vw, 56px);
    line-height: 1.07;
  }

  .title-lead {
    margin-bottom: 10px;
    line-height: 1.5 !important;
  }

  .title-entry-guide {
    padding: 13px !important;
  }

  .title-entry-guide > header b {
    margin-top: 3px;
    font-size: clamp(18px, 1.8vw, 23px) !important;
  }

  .title-entry-guide > header p {
    margin-top: 3px;
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  .experience-choice-grid {
    margin-top: 9px;
  }

  .experience-choice-card {
    grid-template-columns: 1fr;
    min-height: 154px !important;
    padding: 14px 13px 48px !important;
  }

  .experience-choice-card .experience-choice-number {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
  }

  .experience-choice-card .experience-choice-copy small {
    padding-right: 38px;
  }

  .experience-choice-card .experience-choice-copy b {
    margin-top: 4px;
    font-size: clamp(21px, 2vw, 27px) !important;
  }

  .experience-choice-card .experience-choice-copy em,
  .experience-choice-card .experience-choice-copy i {
    margin-top: 4px;
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  .experience-choice-action {
    min-height: 42px;
    font-size: 13px !important;
  }
}

/* Crew talk is a readable story panel, never text over an illustration. */
.crew-scene-card,
.crew-scene-card.is-compact,
.crew-scene-card.is-learning,
.crew-scene-card.is-wide,
.crew-scene-card.is-modal {
  display: grid;
  grid-template-columns: minmax(280px, 42%) minmax(0, 1fr);
  max-height: none;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(141, 228, 211, .28);
  color: #fff;
  background: linear-gradient(125deg, #111a35, #2a2854);
}

.crew-scene-card img,
.crew-scene-card.is-compact img,
.crew-scene-card.is-learning img,
.crew-scene-card.is-wide img,
.crew-scene-card.is-modal img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}

.crew-scene-card figcaption,
.crew-scene-card.is-compact figcaption,
.crew-scene-card.is-learning figcaption,
.crew-scene-card.is-wide figcaption,
.crew-scene-card.is-modal figcaption {
  position: static;
  display: grid;
  align-self: stretch;
  align-content: center;
  gap: 9px;
  max-width: none;
  margin: 0;
  padding: clamp(18px, 2.2vw, 26px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.crew-scene-card figcaption > small {
  color: var(--mgx-story-yellow);
  font-size: 14px !important;
  letter-spacing: .08em;
}

.crew-scene-card figcaption h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(23px, 2.5vw, 34px);
  line-height: 1.25;
}

.crew-talk-lines {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.crew-talk-lines p {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid rgba(255,255,255,.14);
  border-left: 5px solid var(--speaker, var(--mgx-story-mint));
  border-radius: 13px;
  color: #fff;
  background: rgba(255,255,255,.075);
}

.crew-talk-lines p[data-speaker="mio"] { --speaker: #ff917d; }
.crew-talk-lines p[data-speaker="rin"] { --speaker: #ffca75; }
.crew-talk-lines p[data-speaker="mei"] { --speaker: #8fe3a4; }
.crew-talk-lines p[data-speaker="sara"] { --speaker: #7fcfff; }
.crew-talk-lines p[data-speaker="haru"] { --speaker: #a9a0ff; }
.crew-talk-lines p[data-speaker="ren"] { --speaker: #f49cd2; }

.crew-talk-lines b {
  color: var(--speaker);
  font-size: 16px;
}

.crew-talk-lines em {
  align-self: center;
  color: #b9d2dd;
  font-size: 13px;
  font-style: normal;
}

.crew-talk-lines span {
  grid-column: 1 / -1;
  color: #f7fbff;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.52;
}

.crew-scene-card.is-modal {
  flex: 0 0 auto;
}

/* Learning: the real topic comes first; collections become a chosen next chapter. */
.learning-start-guide {
  position: sticky;
  top: 96px;
  align-self: start;
}

.learning-start-guide strong {
  font-size: 18px !important;
}

.learning-start-guide li {
  font-size: 15px !important;
}

.learning-topic-nav button {
  min-height: 76px !important;
  padding: 12px !important;
}

.learning-topic-nav button b {
  font-size: 16px !important;
}

.learning-topic-nav button small {
  font-size: 13px !important;
}

.learning-content :where(.learning-card p, .learning-section-head p, .learning-teacher p, .learning-caution) {
  font-size: 15px !important;
}

.learning-content :where(.learning-card h4, .learning-section-head h3, .learning-teacher h3) {
  font-size: clamp(20px, 2vw, 28px) !important;
}

.learning-content {
  scroll-margin-top: calc(var(--topbar-height, 76px) + 14px);
}

.learning-action-row {
  position: static;
  z-index: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .7fr);
  gap: 14px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(23, 56, 71, .18);
  border-radius: 18px;
  background: #fffdf7;
  box-shadow: 0 12px 28px rgba(23, 56, 71, .1);
}

.learning-action-row button {
  min-height: 54px;
  font-size: 16px !important;
}

.learning-action-row button.is-primary {
  color: #173847;
  background: linear-gradient(100deg, #ffe17a, #9de8d3);
  box-shadow: 0 7px 0 rgba(23, 56, 71, .16);
}

.learning-claim-copy {
  align-content: center;
}

.learning-claim-copy b {
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.45;
}

.mgx-learning-discoveries .mgx-learning-journey {
  margin: 0;
}

.mgx-learning-notes .learning-caution {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f4f0e4;
}

.mgx-learning-extras {
  overflow: visible;
}

.mgx-learning-extras > summary {
  scroll-margin-top: calc(var(--topbar-height, 76px) + 14px);
}

.report-discovery-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.report-discovery-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 14px;
  padding: 13px 14px;
  border: 1px solid rgba(28, 88, 81, .16);
  border-radius: 14px;
  background: rgba(234, 249, 242, .78);
}

.report-discovery-list b {
  color: #166d5d;
  font-size: 14px;
  white-space: nowrap;
}

.report-discovery-list span {
  color: #304f55;
  font-size: 15px;
  line-height: 1.58;
}

/* Put the actual task first on each game page. */
#sort-screen > .sort-stage,
#tour-screen > .tour-layout,
#design-screen > .overdrive-design,
#build-screen > .model-kit-panel,
#operate-screen > .operation-layout {
  margin-top: 22px;
}

#sort-screen > .sort-heading-row,
#tour-screen > .tour-heading-row,
#design-screen > .scene-heading,
#build-screen > .scene-heading,
#operate-screen > .scene-heading {
  min-height: 0;
  margin-bottom: 0;
  padding-top: clamp(18px, 3vw, 32px);
  padding-bottom: 12px;
}

.mgx-design-spec .real-spec-brief,
.mgx-operate-spec .real-spec-brief {
  margin: 0;
}

.sort-stage .sorting-console {
  order: 1;
}

.sort-stage .sort-bins {
  order: 2;
}

.sort-bins button {
  min-height: 112px !important;
}

.sort-bins button b {
  font-size: 17px !important;
}

.sort-item-card h3 {
  font-size: clamp(25px, 3vw, 36px) !important;
}

.sort-feedback b,
.sort-feedback p,
.sort-next {
  font-size: 16px !important;
}

#tour-screen .dice-console {
  margin: 0 0 14px;
  border: 2px solid rgba(255, 224, 122, .55);
  box-shadow: 0 12px 28px rgba(20, 50, 64, .18);
}

#tour-roll,
#tour-challenge {
  min-height: 58px !important;
  font-size: 17px !important;
}

.plant-passport h3 {
  font-size: clamp(24px, 2.5vw, 34px) !important;
}

.passport-specs b,
.plant-feature p,
.plant-mission p {
  font-size: 15px !important;
}

.mgx-tour-atlas .passport-atlas {
  margin: 0;
}

.draft-console h3,
.model-kit-panel h3,
.control-room .control-title span {
  font-size: clamp(21px, 2.2vw, 30px) !important;
}

.draft-cards button,
.model-runner button,
.command-deck button {
  min-height: 74px;
}

.model-rush-start {
  order: -1;
  min-height: 58px !important;
  margin: 12px 0 !important;
  font-size: 17px !important;
}

.control-room label b,
.command-deck button b,
.event-card p {
  font-size: 15px !important;
}

#operation-action {
  min-height: 58px !important;
  font-size: 17px !important;
}

.future-operation-meter > p {
  margin-bottom: 0;
}

/* Results: next action is directly under the score; extra actions remain available. */
.result-actions {
  display: grid !important;
  gap: 12px !important;
  width: min(100%, 960px);
  margin: 22px auto !important;
}

.mgx-result-main-actions {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 12px;
}

.mgx-result-main-actions > * {
  width: 100%;
  min-height: 58px !important;
}

.mgx-result-more {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px;
  color: #fff;
  background: rgba(255,255,255,.07);
}

.mgx-result-more > summary,
.mgx-menu-library > summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  list-style: none;
  cursor: pointer;
  font-weight: 900;
}

.mgx-result-more > summary::-webkit-details-marker,
.mgx-menu-library > summary::-webkit-details-marker {
  display: none;
}

.mgx-result-more[open] > summary span:last-child,
.mgx-menu-library[open] > summary span:last-child {
  transform: rotate(45deg);
}

.mgx-result-more > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 12px 12px;
}

.mgx-result-more:not([open]) > div,
.mgx-menu-library:not([open]) > div {
  display: none;
}

.mgx-result-more > div > * {
  width: 100%;
  min-height: 52px;
}

/* App menu: two starting choices, two guides, then the complete library. */
.app-menu-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.mgx-menu-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mgx-menu-group > p {
  grid-column: 1 / -1;
  margin: 0;
  color: #9de8d3;
  font-weight: 900;
}

.app-menu-nav .mgx-menu-group > :is(button, a),
.mgx-menu-library > div > :is(button, a) {
  position: relative;
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 12px;
  align-items: center;
  width: 100% !important;
  min-height: 82px;
  padding: 12px !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 18px !important;
  color: #fff !important;
  background: rgba(255,255,255,.075) !important;
  text-align: left;
  text-decoration: none;
}

.app-menu-nav .mgx-menu-group > :is(button, a) > span,
.mgx-menu-library > div > :is(button, a) > span {
  grid-row: 1 / 3;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 15px;
  color: #163847;
  background: linear-gradient(145deg, var(--mgx-story-yellow), var(--mgx-story-mint));
  font-size: 18px !important;
  font-weight: 950;
}

.app-menu-nav .mgx-menu-group > :is(button, a) > b,
.mgx-menu-library > div > :is(button, a) > b {
  display: block !important;
  align-self: end;
  font-size: 16px !important;
}

.app-menu-nav .mgx-menu-group > :is(button, a) > small,
.mgx-menu-library > div > :is(button, a) > small {
  display: block !important;
  align-self: start;
  color: #9bdde6;
  font-size: 13px !important;
}

.app-menu-nav .mgx-menu-group > .crew-button > span.crew-face {
  background-image:
    url("assets/meguru-crew-roster-v2.webp"),
    linear-gradient(145deg, var(--member-color, var(--crew-color)), var(--member-accent, #fff0a8)) !important;
  background-position: var(--portrait-x, 0%) var(--portrait-y, 0%), center !important;
  background-size: 300% 200%, cover !important;
}

.mgx-menu-library {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  color: #fff;
  background: rgba(255,255,255,.05);
}

.mgx-menu-library > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 10px 10px;
}

.mgx-menu-library .best-score {
  grid-column: 1 / -1;
  min-height: 58px;
  padding: 12px 16px;
  font-size: 14px !important;
}

/* Crew cards: portraits keep their shape and every decision-relevant line is readable. */
.crew-card {
  grid-template-columns: 180px minmax(0, 1fr) auto !important;
  min-height: 310px !important;
  padding: 18px !important;
}

.crew-card-portrait {
  width: 178px !important;
  height: 178px !important;
  aspect-ratio: 1 / 1;
}

.crew-card-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.crew-card-heading small,
.crew-card-heading i,
.crew-card-detail b,
.crew-card-check {
  font-size: 13px !important;
}

.crew-card-heading strong {
  font-size: 25px !important;
}

.crew-card-detail em {
  font-size: 15px !important;
  line-height: 1.55 !important;
}

.crew-choice-footer span,
.crew-choice-footer span small {
  font-size: 15px !important;
}

.crew-choice-footer button {
  min-height: 54px;
  font-size: 16px !important;
}

.crew-dialog > header p,
.crew-tabs button,
.crew-result-copy p,
.scrapbook-hero p,
.scrap-card p,
.scrap-card footer {
  font-size: 15px !important;
}

/* Technical labels are still part of the story; none should require zooming. */
.sound-control,
.sort-note,
.world-board > header,
.world-board > header > div,
.spec-title,
.future-tech-card > span,
.process-sources,
.flow-label,
.runner-topline,
.timing-scale,
.monitor-topline,
.range-labels,
.mo-tutorial-banner {
  font-size: 13px !important;
}

.topbar .sound-control {
  position: static;
  z-index: auto;
  right: auto;
  bottom: auto;
  min-width: 108px;
  min-height: 46px;
  box-shadow: inset 0 0 18px rgba(98, 231, 245, .05);
}

.topbar button {
  min-height: 44px;
}

body .screen button {
  min-height: 48px !important;
}

@media (max-width: 860px) {
  body :where(p, li, dd, dt, label) {
    font-size: 15px !important;
  }

  .mgx-route-bar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .crew-scene-card,
  .crew-scene-card.is-compact,
  .crew-scene-card.is-learning,
  .crew-scene-card.is-wide,
  .crew-scene-card.is-modal {
    grid-template-columns: 1fr;
  }

  .crew-scene-card img,
  .crew-scene-card.is-compact img,
  .crew-scene-card.is-learning img,
  .crew-scene-card.is-wide img,
  .crew-scene-card.is-modal img {
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 9;
  }

  .learning-start-guide {
    position: static;
  }

  .sort-stage {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .sort-stage .sorting-console,
  .sort-stage .sort-bins {
    width: 100%;
  }

  .crew-card {
    grid-template-columns: 142px minmax(0, 1fr) !important;
  }

  .crew-card-portrait {
    width: 140px !important;
    height: 140px !important;
  }

  .crew-card-check {
    grid-column: 2;
  }
}

@media (max-width: 600px) {
  .topbar .sound-control {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
  }

  .topbar .sound-control > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .mgx-story-chapter {
    border-radius: 17px;
  }

  .mgx-story-chapter > summary {
    min-height: 70px;
    padding: 12px 14px;
  }

  .mgx-story-summary-action {
    min-width: 62px;
  }

  .experience-choice-grid,
  .mgx-result-main-actions,
  .mgx-result-more > div,
  .mgx-menu-group,
  .mgx-menu-library > div,
  .learning-action-row {
    grid-template-columns: 1fr !important;
  }

  .experience-choice-card {
    min-height: 150px !important;
  }

  .learning-action-row > span {
    grid-column: 1;
  }

  .report-discovery-list li {
    grid-template-columns: 1fr;
  }

  .crew-talk-lines p {
    grid-template-columns: 1fr;
  }

  .crew-talk-lines em,
  .crew-talk-lines span {
    grid-column: 1;
  }

  .crew-card {
    grid-template-columns: 108px minmax(0, 1fr) !important;
    padding: 12px !important;
  }

  .crew-card-portrait {
    width: 106px !important;
    height: 106px !important;
  }

  .crew-card-copy {
    display: contents;
  }

  .crew-card-detail {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mgx-story-chapter *,
  .crew-scene-card *,
  .experience-choice-card {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* v30: keep the current task above orientation material. */
.learning-workspace {
  display: block;
}

.learning-start-guide {
  position: static !important;
  max-width: 1380px;
  margin: 22px auto 0 !important;
}

.learning-screen > .learning-hero {
  margin: 22px auto 0;
}

.learning-picks-hero p {
  margin: 12px 0 0;
  color: #42656a;
  font-size: 16px;
  line-height: 1.75;
}

.learning-atlas-single-action {
  display: block !important;
}

.learning-atlas-single-action .learning-picks-open {
  display: grid;
  width: 100%;
  min-height: 92px;
  place-items: center;
  padding: 18px 24px;
  border: 3px solid #173847;
  border-radius: 22px;
  color: #173847;
  text-align: center;
  background: linear-gradient(105deg, #ffe27b, #9cebd3 70%, #aad7ff);
  box-shadow: 0 9px 0 rgba(23, 56, 71, .19), 0 20px 44px rgba(23, 56, 71, .12);
}

.learning-atlas-single-action .learning-picks-open b {
  font-size: clamp(20px, 2.2vw, 30px);
}

.learning-atlas-single-action .learning-picks-open small {
  margin-top: 5px;
  font-size: 14px;
}

/* Enabled controls look tactile; disabled controls look intentionally unavailable. */
button[data-control-state="ready"],
button:not(:disabled),
a[href],
summary,
select,
label[for] {
  cursor: pointer;
}

button[data-control-state="ready"] {
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

button[data-control-state="ready"]:hover {
  filter: saturate(1.06) brightness(1.02);
}

button[data-control-state="ready"]:active {
  transform: translateY(2px);
}

button[data-control-state="locked"],
button:disabled,
[aria-disabled="true"] {
  opacity: .46 !important;
  cursor: not-allowed !important;
  filter: grayscale(.4);
  box-shadow: none !important;
}

button:focus-visible,
a[href]:focus-visible,
summary:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 4px solid #ffca4f !important;
  outline-offset: 3px;
}

.learning-topic-nav button {
  border: 2px solid rgba(23, 56, 71, .22) !important;
  box-shadow: 0 4px 0 rgba(23, 56, 71, .1);
}

.learning-topic-nav button.is-active,
.learning-topic-nav button[aria-current="page"] {
  border-color: #1f685f !important;
  color: #173f46 !important;
  background: linear-gradient(105deg, #eafff7, #fff5c4) !important;
  box-shadow: inset 5px 0 #53c9a5, 0 5px 0 rgba(23, 56, 71, .13);
}

.learning-topic-nav button.is-active b,
.learning-topic-nav button[aria-current="page"] b {
  color: #173f46 !important;
}

.learning-topic-nav button.is-active small,
.learning-topic-nav button[aria-current="page"] small {
  color: #486d70 !important;
}

.learning-topic-nav button.is-active::after,
.learning-topic-nav button[aria-current="page"]::after {
  color: #1f685f !important;
}

.learning-action-row button.is-primary:hover,
.learning-atlas-single-action .learning-picks-open:hover {
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .learning-start-guide {
    margin-top: 16px !important;
  }

  .learning-screen > .learning-hero {
    margin-top: 16px;
  }

  .learning-atlas-single-action .learning-picks-open {
    min-height: 104px;
    padding: 16px;
  }
}
