/* Mission 002: one board, a few inviting doors. */
.topbar nav {
  gap: 26px;
}
.topbar nav button {
  font-size: 13px;
}
.world-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.world-strip button {
  font-size: 11px;
  font-weight: 700;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.world-strip span {
  font:
    italic 11px Georgia,
    serif;
  color: #85917e;
  text-align: right;
}
.board-tools-extra {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  padding: 12px 0 0;
  flex-wrap: wrap;
}
.board-tools-extra button {
  font-size: 10px;
  padding: 8px;
  border-radius: 6px;
  background: #e9eddf;
  color: #4a6450;
}
.board-tools-extra button.enabled {
  background: var(--ink);
  color: white;
}
.professor-entry {
  margin: 17px 0 0;
  border: 1px solid #c9d4be;
  border-radius: 12px;
  background: #e8eddf;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 5px;
  padding: 16px 12px;
  text-align: left;
  width: 100%;
}
.professor-entry > span {
  font-size: 28px;
  grid-row: 1/3;
}
.professor-entry strong {
  font:
    16px Georgia,
    serif;
}
.professor-entry small {
  font-size: 9px;
  line-height: 1.6;
  color: #7d8974;
}
.personality-button {
  font-size: 9px;
  color: #74846b;
  padding: 9px 0 0;
  margin-left: 48px;
}
.side-intro {
  font:
    italic 15px/1.5 Georgia,
    serif;
  color: #87917f;
}
.lesson-list {
  max-height: 560px;
  overflow: auto;
  padding-right: 3px;
}
.lesson-item {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  border: 1px solid #dce3d3;
  border-radius: 9px;
  margin: 8px 0;
  padding: 12px 10px;
  width: 100%;
  background: #f8f9f3;
}
.lesson-item > span:first-child {
  font-size: 23px;
  color: #77906a;
}
.lesson-item strong {
  font-size: 11px;
  line-height: 1.5;
  display: block;
}
.lesson-item small {
  font-size: 9px;
  color: #929b89;
  display: block;
  margin-top: 4px;
}
.lesson-item i {
  font-style: normal;
  margin-left: auto;
  font-size: 12px;
}
.lesson-item.active,
.lesson-item[aria-pressed="true"] {
  background: #e5ebd9;
  border-color: #aabd97;
}
.quest-actions > .outline-button {
  margin-bottom: 10px;
}
.quest-actions > div {
  display: flex;
  justify-content: space-between;
}
.discovered {
  display: block;
  color: #4b7242;
  background: #dce9d0;
  border-radius: 6px;
  padding: 10px;
  font-size: 11px;
  margin-bottom: 13px;
}
.branch-bar {
  padding: 13px 15px;
  border-radius: 9px;
  background: #e6dfef;
  border: 1px solid #cbc0d9;
  margin-top: 14px;
  color: #635270;
}
.branch-bar strong {
  font-size: 9px;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}
.branch-bar label {
  font-size: 11px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.branch-bar > div {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 8px;
}
.branch-bar button {
  font-size: 11px;
  padding: 7px 4px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  line-height: 1.5;
  margin: 15px 0;
}
.check-row small {
  color: #8c9584;
  font-size: 9px;
}
.check-row input {
  accent-color: var(--green);
}
.wide-dialog {
  max-width: 780px;
}
.personality-list {
  margin: 18px 0;
}
.picker-list {
  max-height: 55vh;
  overflow: auto;
}
.vazir-panel {
  background: #f0ece3;
  border: 1px solid #ded6c5;
  padding: 19px;
  border-radius: 12px;
}
.oracle-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.oracle-heading > span {
  font-size: 30px;
  color: #b7955e;
}
.oracle-heading strong {
  font-size: 13px;
  letter-spacing: 1.5px;
}
.oracle-heading small {
  font-size: 7px;
  display: block;
  letter-spacing: 1px;
  margin-top: 5px;
  color: #9c927e;
}
.oracle-heading button {
  margin-left: auto;
  font-size: 20px;
}
.vazir-history {
  max-height: 420px;
  overflow: auto;
  margin: 18px 0;
}
.oracle-welcome {
  font:
    italic 22px/1.5 Georgia,
    serif;
  color: #9b907b;
  padding: 15px 0;
}
.oracle-question {
  font-size: 12px;
  line-height: 1.7;
  padding: 12px;
  background: #e5ddcc;
  border-radius: 9px;
}
.oracle-answer {
  padding: 7px 0 17px;
  border-bottom: 1px solid #ddd4c2;
}
.oracle-answer > p {
  font-size: 12px;
  line-height: 1.8;
}
.oracle-answer .verified-fact {
  border-left: 2px solid #aab58b;
  padding-left: 10px;
  color: #6b795c;
  font-size: 11px;
}
.oracle-answer button {
  margin-top: 10px;
}
.vazir-panel textarea,
textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid #cbd3c1;
  border-radius: 7px;
  background: #fcfcf8;
  color: var(--ink);
  font: 12px/1.7 inherit;
  padding: 12px;
}
#editor-palette {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
}
#editor-palette button {
  padding: 3px;
  background: #e0e6d7;
  border-radius: 5px;
}
#editor-palette button.active {
  outline: 2px solid var(--world-accent);
}
#editor-palette img {
  width: 100%;
  display: block;
}
#editor-palette button:last-child {
  font-size: 24px;
  grid-column: 1/-1;
}
.inline-error {
  font-size: 12px;
  color: #a14e3e;
  line-height: 1.6;
}
.magic-controlled {
  box-shadow: inset 0 0 0 4px #6e9eae !important;
}
.magic-attacked {
  box-shadow: inset 0 0 0 4px #d6975c !important;
}
.magic-threatened,
.magic-relations {
  box-shadow: inset 0 0 0 5px #c8786e !important;
}
.magic-undefended {
  box-shadow: inset 0 0 0 4px #b6a259 !important;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #f8f8f0;
  text-align: left;
  padding: 0;
}
.gallery-card > img {
  width: 100%;
  display: block;
}
.gallery-card > div {
  padding: 21px;
}
.gallery-card h2 {
  font-size: 23px;
  margin: 16px 0;
}
.gallery-card p {
  font-size: 12px;
  color: #87917c;
}
.gallery-card > div > span:last-child {
  font-size: 11px;
}
.gallery-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
}
.empty-gallery {
  text-align: center;
  padding: 65px;
}
.empty-gallery > span {
  font-size: 70px;
  color: #93a17f;
}
.empty-gallery p {
  font-size: 13px;
  color: #929a88;
}
.development-panel {
  margin-top: 22px;
}
.development-panel .card-title {
  padding: 0 0 18px;
}
.development-panel .outline-button {
  width: auto;
}
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin: 24px 0;
}
.evidence-grid strong {
  font:
    20px Georgia,
    serif;
}
.evidence-grid p {
  font-size: 11px;
  line-height: 1.8;
}
.milestone-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.milestone-chips > span {
  padding: 8px 10px;
  border-radius: 18px;
  background: #dfe8d5;
  font-size: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
body[data-experience="vazir"] .companion-card,
body[data-experience="vazir"] .moves-card {
  display: none;
}
body[data-experience="learn"] .left-column > :not(#kingdom-left),
body[data-experience="discover"] .left-column > :not(#kingdom-left),
body[data-experience="vazir"] .left-column > :not(#kingdom-left) {
  display: none;
}
body[data-experience="learn"] #coach-actions,
body[data-experience="discover"] #coach-actions {
  margin-top: 10px;
}
body[data-experience="learn"] .moves-card,
body[data-experience="discover"] .moves-card {
  display: none;
}
.topbar nav button {
  min-height: 42px;
}
@media (max-width: 1150px) {
  .topbar nav {
    gap: 20px;
  }
  .world-strip span {
    display: none;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 940px) {
  #kingdom-left {
    width: 100%;
  }
  .lesson-list {
    display: flex;
    gap: 8px;
    overflow: auto;
    max-height: 100px;
    padding-bottom: 6px;
  }
  .lesson-list .lesson-item {
    min-width: 190px;
    margin: 0;
  }
  .side-intro {
    margin: 0 0 12px;
  }
  .left-column .professor-entry {
    width: auto;
    flex: 1;
    margin: 0;
    padding: 12px;
  }
  .left-column .professor-entry small {
    display: none;
  }
  .left-column .professor-entry strong {
    font-size: 12px;
  }
  .left-column .professor-entry > span {
    font-size: 22px;
  }
  .left-column #new-couch {
    flex: 0.8;
  }
  .left-column #new-couch .mode-icon {
    display: none;
  }
  body[data-experience="vazir"] #kingdom-left {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  body[data-experience="vazir"] #kingdom-left > .section-label,
  body[data-experience="vazir"] #kingdom-left > .side-intro {
    display: none;
  }
  body[data-experience="vazir"] #kingdom-left > .lesson-item {
    width: auto;
    flex: 1;
    min-width: 120px;
    margin: 0;
  }
  .evidence-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 650px) {
  .topbar {
    height: auto;
    min-height: 103px;
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 12px 16px 0;
    gap: 7px;
  }
  .topbar nav {
    grid-row: 2;
    grid-column: 1/-1;
    justify-content: space-between;
    gap: 8px;
    height: 41px;
    overflow: auto;
  }
  .topbar nav button {
    font-size: 11px;
    padding: 0 3px;
  }
  .profile-button {
    grid-column: 2;
    grid-row: 1;
  }
  .brand {
    font-size: 27px;
  }
  .intro {
    margin-bottom: 17px;
  }
  h1 {
    font-size: 28px;
  }
  .left-column {
    flex-wrap: wrap;
    gap: 8px;
  }
  .left-column > .mode-card {
    flex: 1 1 28%;
  }
  .left-column > .professor-entry {
    flex: 1 1 100%;
    grid-template-columns: 25px 1fr auto;
    padding: 12px 14px;
  }
  .left-column .professor-entry small {
    display: block;
    font-size: 10px;
    grid-column: 3;
    grid-row: 1;
    align-self: center;
  }
  .left-column .professor-entry strong {
    font-size: 15px;
  }
  .left-column .professor-entry > span {
    grid-row: 1;
  }
  .left-column #new-couch {
    flex: 1 1 28%;
  }
  .mode-card strong {
    font-size: 10px;
  }
  .mode-icon {
    width: 22px;
    flex-shrink: 0;
  }
  .board-tools-extra {
    gap: 5px;
  }
  .board-tools-extra button {
    flex: 1;
    font-size: 9px;
    padding: 9px 5px;
  }
  .world-strip {
    margin-bottom: 8px;
  }
  .world-strip button {
    font-size: 10px;
    padding: 7px 10px;
  }
  .right-column {
    gap: 12px;
  }
  .vazir-history {
    max-height: 320px;
  }
  .vazir-panel textarea {
    font-size: 16px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .evidence-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .development-panel .card-title {
    flex-wrap: wrap;
    gap: 15px;
  }
  .world-grid {
    gap: 10px !important;
  }
  .world-option strong {
    font-size: 16px !important;
  }
  .world-option small {
    font-size: 10px !important;
  }
  .world-option .world-copy {
    padding: 10px !important;
  }
  .lesson-list .lesson-item {
    min-width: 185px;
  }
  .clock {
    font-size: 21px !important;
    min-width: 83px !important;
  }
  .branch-bar strong {
    font-size: 8px;
  }
  .branch-bar button {
    font-size: 10px;
  }
  .quest-actions .text-button {
    font-size: 12px;
  }
  .form-field input,
  .form-field select {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body[data-world] {
    transition: none !important;
  }
}
.magic-opportunities {
  box-shadow: inset 0 0 0 4px #77a874 !important;
}
