@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");
:root {
  font-family: "DM Sans", sans-serif;
  color: #30382e;
  background: #f7f6ef;
  font-synthesis: none;
  --green: #365e46;
  --muted: #7b8277;
  --line: #e5e6dd;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #779b62;
  outline-offset: 3px;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
button {
  transition:
    background 0.15s,
    transform 0.15s;
}
button:hover {
  filter: brightness(0.97);
}
.skip {
  position: absolute;
  transform: translateY(-200%);
  z-index: 5;
  background: white;
  padding: 12px;
}
.skip:focus {
  transform: none;
}
.sidebar {
  width: 228px;
  position: fixed;
  inset: 0 auto 0 0;
  border-right: 1px solid var(--line);
  background: #efefe5;
  padding: 34px 22px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -1.5px;
  margin: 0 5px 58px;
}
.brand > span:not(.pokeball) {
  color: #75916b;
}
.brand sup {
  font-size: 18px;
  color: #d3a461;
  align-self: start;
  margin-left: 5px;
}
.pokeball {
  width: 25px;
  height: 25px;
  background: linear-gradient(#dc8670 0 44%, #425c46 44% 56%, #f7f6ef 56%);
  border: 2px solid #425c46;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  margin-right: 10px;
  flex-shrink: 0;
}
.pokeball:after {
  content: "";
  width: 7px;
  height: 7px;
  border: 2px solid #425c46;
  background: #f7f6ef;
  border-radius: 50%;
  position: absolute;
  left: 5px;
  top: 6px;
}
.workspace-label,
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 700;
  color: #858c79;
}
.workspace-label {
  font-size: 8px;
  margin: 0 8px 15px;
}
.nav-item {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 13px 12px;
  border-radius: 8px;
  margin-bottom: 7px;
  font-size: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.nav-item small {
  margin-left: auto;
  font-size: 9px;
  color: #8a9382;
}
.nav-item.active {
  background: #dfe7d7;
  color: #365e46;
  font-weight: 700;
}
.nav-item > span {
  font-size: 18px;
}
.sidebar-note {
  margin-top: auto;
  padding: 24px 10px 30px;
}
.sidebar-note > span {
  font-size: 24px;
  color: #93a777;
}
.sidebar-note h3 {
  font-size: 13px;
  margin: 12px 0 8px;
}
.sidebar-note p {
  font-size: 11px;
  color: #7b8277;
  line-height: 1.7;
}
.trainer-card {
  display: flex;
  gap: 10px;
  border-top: 1px solid #dcdfd2;
  padding-top: 22px;
  align-items: center;
}
.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #d5dfc6;
  border-radius: 50%;
  font-size: 12px;
}
.trainer-card strong {
  display: block;
  font-size: 11px;
}
.trainer-card small {
  font-size: 9px;
  color: var(--muted);
}
.demo-note {
  font-size: 9px;
  line-height: 1.7;
  color: #858c79;
  margin: 16px 0 0;
}
.shell {
  margin-left: 228px;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  font-size: 11px;
  color: #8b9185;
}
.topbar strong {
  font-weight: 500;
  color: #4c5747;
}
.crumb {
  margin: 0 12px;
  color: #b6bcad;
}
.trainer-switch {
  display: flex;
  align-items: center;
  gap: 10px;
}
.trainer-switch select {
  border: 1px solid #dedfd4;
  border-radius: 6px;
  background: #fffdf5;
  padding: 7px;
  font-size: 11px;
}
main {
  max-width: 1500px;
  margin: auto;
  padding: 36px 40px 0;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 9px;
  margin-bottom: 10px;
}
.page-heading h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 34px;
  letter-spacing: -1.5px;
  font-weight: 600;
  margin-bottom: 8px;
}
.page-heading h1 span {
  color: #91a678;
}
.page-heading > div > p:last-child {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.primary,
.secondary,
.subtle-button {
  border: 0;
  border-radius: 7px;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
}
.primary {
  background: #365e46;
  color: white;
}
.secondary {
  background: #e7eddc;
  color: #365e46;
}
.welcome {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  border: 1px solid #dde4d1;
  border-radius: 13px;
  background: #e9eddf;
  padding: 28px 32px;
  margin-bottom: 30px;
  min-height: 222px;
}
.welcome-badge {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #6f845f;
}
.welcome h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.9px;
  font-weight: 500;
  margin: 13px 0 10px;
}
.welcome p {
  font-size: 11px;
  color: #7c8772;
}
.subtle-button {
  background: #f8faf0;
  border: 1px solid #d2dcc5;
  color: #4e6741;
  padding: 9px 12px;
  margin-top: 2px;
}
.subtle-button span {
  margin-left: 20px;
}
.welcome-art {
  position: relative;
  width: 240px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}
.welcome-art img {
  z-index: 1;
  filter: drop-shadow(0 10px 10px #79945d25);
  object-fit: contain;
}
.orbit {
  width: 175px;
  height: 175px;
  background: #dde6ca;
  border-radius: 50%;
  position: absolute;
  border: 16px solid #e1e8d3;
  outline: 1px dashed #c9d4b7;
  outline-offset: 12px;
}
.spark {
  position: absolute;
  font-size: 24px;
  color: #9eb17f;
}
.spark.one {
  right: 8px;
  top: 12px;
}
.spark.two {
  left: 10px;
  bottom: 30px;
}
.companion-label {
  position: absolute;
  bottom: -10px;
  font-size: 7px;
  letter-spacing: 1px;
  color: #879775;
  white-space: nowrap;
}
.board-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
.tabs {
  display: flex;
  gap: 5px;
  background: #eeeee5;
  border: 1px solid #e2e4d8;
  border-radius: 8px;
  padding: 4px;
}
.tabs button {
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-size: 11px;
  padding: 9px 14px;
  font-weight: 600;
}
.tabs button[aria-pressed="true"] {
  background: #fffef9;
  box-shadow: 0 1px 4px #334b2510;
}
.tabs button span {
  font-size: 8px;
  font-weight: 400;
  color: #8a9280;
  display: none;
}
.search {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #8a9280;
}
.search input {
  width: 160px;
  border: 1px solid #e2e4d8;
  border-radius: 6px;
  padding: 9px 10px;
  background: #fcfbf6;
  font-size: 10px;
}
.board-context {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #8a9280;
  font-size: 9px;
  margin: 17px 0;
}
.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.column {
  border-radius: 9px;
  background: #eeeee6;
  padding: 11px;
  min-height: 330px;
  border: 1px solid #e5e6dc;
}
.column-title {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 3px 2px 15px;
  font-size: 11px;
  font-weight: 600;
}
.column-title .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b1baa3;
}
.column-title .count {
  font-size: 9px;
  background: #e1e3d6;
  border-radius: 4px;
  padding: 1px 5px;
  color: #7b8270;
}
.column-title .column-add {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #939c86;
  font-size: 18px;
  padding: 0 3px;
}
.column[data-status="ready"] .dot {
  background: #b9aa6f;
}
.column[data-status="progress"] .dot {
  background: #82a8b8;
}
.column[data-status="done"] .dot {
  background: #7f9e73;
}
.quest-card {
  background: #fffef9;
  border: 1px solid #e0e3d7;
  border-radius: 8px;
  padding: 13px;
  margin-bottom: 11px;
  box-shadow: 0 2px 3px #24351603;
}
.card-open {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  width: 100%;
  display: block;
}
.pokemon-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.pokemon-line img {
  width: 49px;
  height: 49px;
  object-fit: contain;
  image-rendering: pixelated;
  background: #edf1e4;
  border-radius: 10px;
}
.pokemon-line strong {
  display: block;
  font-size: 10px;
  font-weight: 600;
}
.pokemon-line small {
  font-size: 8px;
  color: #8d9681;
}
.type-badge {
  font-size: 7px;
  letter-spacing: 0.5px;
  border: 1px solid #d8e2ce;
  border-radius: 4px;
  padding: 3px 5px;
  color: #718963;
  display: inline-block;
  margin-bottom: 7px;
}
.quest-card h3 {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: -0.15px;
  font-weight: 600;
  margin-bottom: 8px;
}
.next-step {
  font-size: 9px;
  color: #8b9382;
  line-height: 1.6;
  margin: 0 0 13px;
}
.next-step strong {
  font-weight: 500;
  color: #69765f;
}
.card-meta {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  font-size: 8px;
  margin-bottom: 12px;
  color: #839075;
}
.priority {
  border-radius: 4px;
  padding: 3px 5px;
  background: #f0f1e7;
}
.priority.high {
  background: #f7e8df;
  color: #ac765c;
}
.priority.medium {
  background: #f6f0d9;
  color: #a08d4d;
}
.priority.low {
  background: #eaf0e1;
  color: #819366;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #edf0e5;
  padding-top: 10px;
  font-size: 8px;
  color: #919986;
}
.task-progress {
  height: 3px;
  border-radius: 5px;
  background: #e9eddf;
  margin-bottom: 8px;
}
.task-progress span {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: #9fb880;
}
.move-task {
  border: 0;
  background: transparent;
  color: #69845b;
  font-size: 8px;
  padding: 4px;
}
.add-column {
  width: 100%;
  padding: 10px;
  border: 1px dashed #d6dccb;
  border-radius: 6px;
  background: transparent;
  color: #919a85;
  font-size: 9px;
}
.empty-column {
  font-size: 10px;
  text-align: center;
  color: #959f8c;
  line-height: 1.8;
  padding: 20px 8px;
}
.private-view {
  text-align: center;
  padding: 65px 20px;
  background: #eeeee6;
  border-radius: 10px;
}
.private-view > div {
  font-size: 40px;
  color: #83996c;
}
.private-view h2 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  margin: 15px;
}
.private-view p {
  font-size: 13px;
  max-width: 450px;
  line-height: 1.8;
  margin: 0 auto 20px;
  color: #7b8277;
}
.private-view small {
  display: block;
  font-size: 10px;
  color: #8a9280;
  margin-top: 25px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
  font-size: 8px;
  color: #9ca391;
}
dialog {
  border: 1px solid #dfe4d4;
  border-radius: 15px;
  padding: 25px;
  max-width: 560px;
  width: calc(100% - 30px);
  color: #30382e;
  background: #fffef8;
  box-shadow: 0 30px 100px #243b2833;
}
dialog::backdrop {
  background: #1f302966;
  backdrop-filter: blur(4px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-heading .eyebrow {
  margin: 0;
}
.icon-button {
  border: 0;
  background: #efefe4;
  border-radius: 50%;
  width: 30px;
  height: 30px;
}
.form-title,
dialog h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -1px;
  margin: 20px 0 10px;
}
.form-description {
  font-size: 12px;
  color: #8a9280;
  line-height: 1.7;
}
.task-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 10px;
  color: #76826b;
}
.field.full {
  grid-column: 1/-1;
}
.field input,
.field select,
.field textarea {
  border: 1px solid #dce1d1;
  border-radius: 5px;
  background: #fafaf2;
  padding: 10px;
  color: #394633;
  min-width: 0;
  width: 100%;
  font-size: 12px;
}
.field textarea {
  min-height: 70px;
  resize: vertical;
}
.form-actions {
  grid-column: 1/-1;
  display: flex;
  justify-content: end;
  gap: 8px;
  margin-top: 8px;
}
.detail-hero {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}
.detail-hero img {
  width: 100px;
  height: 100px;
  image-rendering: pixelated;
}
.detail-hero h2 {
  font-size: 23px;
  margin: 0 0 8px;
}
.detail-description {
  font-size: 12px;
  color: #7b8277;
  line-height: 1.8;
}
.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #eef2e5;
  padding: 14px;
  border-radius: 8px;
  margin: 18px 0;
}
.detail-stats dt {
  font-size: 8px;
  color: #8a9280;
  margin-bottom: 5px;
}
.detail-stats dd {
  margin: 0;
  font-size: 11px;
}
.checklist {
  padding: 0;
  list-style: none;
}
.checklist label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  font-size: 12px;
  border-bottom: 1px solid #eeeee4;
}
.checklist input {
  accent-color: #6d8c58;
  width: 16px;
  height: 16px;
}
.checklist input:checked + span {
  text-decoration: line-through;
  color: #939e87;
}
.detail-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}
.detail-status {
  font-size: 11px;
  border: 1px solid #dce1d1;
  padding: 8px;
  border-radius: 5px;
  background: #fffef8;
}
.focus-image {
  width: 130px;
  height: 130px;
  object-fit: contain;
  margin: 10px auto;
  display: block;
}
.focus-step {
  font-size: 18px;
  line-height: 1.5;
  background: #edf2e3;
  border: 1px solid #dce5cf;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
}
.focus-description {
  text-align: center;
  font-size: 12px;
  color: #8a9280;
}
.focus-complete {
  width: 100%;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  border: 1px solid #c7d9bb;
  background: #edf5e5;
  padding: 15px 22px;
  border-radius: 10px;
  box-shadow: 0 5px 30px #334b2520;
  font-size: 12px;
  max-width: 90%;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  .tabs button span {
    display: inline;
    margin-left: 7px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 180px;
    padding: 28px 15px;
  }
  .brand {
    font-size: 27px;
  }
  .shell {
    margin-left: 180px;
  }
  main {
    padding: 28px 25px 0;
  }
  .topbar {
    padding-inline: 25px;
  }
  .board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .column {
    min-height: 260px;
  }
  .welcome-art {
    width: 190px;
  }
  .welcome {
    padding: 25px;
  }
  .welcome h2 {
    font-size: 23px;
  }
}
@media (max-width: 650px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 15px 20px;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    margin: 0 auto 0 0;
    font-size: 25px;
  }
  .workspace-label,
  .sidebar-note,
  .trainer-card,
  .demo-note {
    display: none;
  }
  .nav-item {
    margin: 0;
    padding: 8px;
    font-size: 10px;
  }
  .nav-item small {
    display: none;
  }
  .shell {
    margin: 0;
  }
  .topbar {
    height: 55px;
    padding: 0 20px;
    font-size: 10px;
  }
  main {
    padding: 25px 16px 0;
  }
  .page-heading {
    align-items: start;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading > div > p:last-child {
    font-size: 10px;
  }
  .page-heading .primary {
    font-size: 10px;
    padding: 10px;
    white-space: nowrap;
  }
  .welcome {
    padding: 23px 20px;
    min-height: 190px;
  }
  .welcome h2 {
    font-size: 20px;
  }
  .welcome p {
    max-width: 200px;
    line-height: 1.6;
    font-size: 10px;
  }
  .welcome-art {
    width: 90px;
    flex-shrink: 0;
  }
  .welcome-art img {
    width: 100px;
    height: 100px;
  }
  .orbit {
    width: 95px;
    height: 95px;
    border-width: 8px;
  }
  .companion-label,
  .spark {
    display: none;
  }
  .welcome-badge {
    font-size: 7px;
  }
  .board-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .tabs button {
    flex: 1;
  }
  .search input {
    width: 100%;
  }
  .search {
    width: 100%;
  }
  .board {
    grid-template-columns: 1fr;
  }
  .column {
    min-height: 0;
  }
  .quest-card {
    padding: 16px;
  }
  .quest-card h3 {
    font-size: 14px;
  }
  .pokemon-line img {
    width: 55px;
    height: 55px;
  }
  .next-step {
    font-size: 11px;
  }
  .card-meta,
  .card-footer,
  .move-task {
    font-size: 10px;
  }
  .board-context {
    font-size: 9px;
  }
  .board-context span:last-child {
    white-space: nowrap;
  }
  footer {
    flex-direction: column;
    gap: 8px;
  }
  .task-form {
    gap: 12px;
  }
  .detail-actions {
    flex-wrap: wrap;
  }
  .layerControls {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.focus-step-content {
  background: #edf2e3;
  border: 1px solid #dce5cf;
  border-radius: 10px;
  padding: 0 20px 5px;
  margin: 20px 0;
}
.focus-step-content > p.focus-step {
  font-size: 18px;
  line-height: 1.6;
  color: #405638;
}

/* Starter selection, inspired by the beginning of a Pokémon adventure. */
.starter-trigger {
  display: block;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #aebf98;
  padding: 6px 0;
  margin: 0 0 10px;
  font-size: 11px;
  color: #496c3e;
  cursor: pointer;
  font-weight: 600;
}
.starter-intro {
  text-align: center;
  margin-top: 20px;
}
.starter-intro h2 {
  font-size: 29px;
  line-height: 1.2;
}
.starter-intro > p:last-child {
  font-size: 12px;
  line-height: 1.7;
  color: #7b8277;
  max-width: 340px;
  margin: 0 auto 24px;
}
.starter-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.starter-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-width: 0;
  padding: 12px 8px;
  background: #f0f3e8;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
}
.starter-4 {
  background: #f8eee4;
}
.starter-252 {
  background: #e9f1e4;
}
.starter-option[aria-pressed="true"] {
  border-color: #537b42;
  box-shadow: 0 3px 0 #b6c7a2;
  transform: translateY(-3px);
}
.starter-option:hover {
  border-color: #b1c29e;
}
.starter-number {
  align-self: start;
  font: 9px monospace;
  color: #8c987d;
}
.starter-option img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  transition: transform 0.2s;
}
.starter-option[aria-pressed="true"] img {
  transform: translateY(-4px);
}
.starter-option strong {
  font-size: 12px;
  margin: 8px 0;
}
.starter-option .type-badge {
  font-size: 8px;
  margin: 0 0 9px;
}
.starter-option small {
  font-size: 10px;
  line-height: 1.5;
  color: #7b8277;
  min-height: 45px;
}
.starter-ball {
  color: #9cae88;
  font-size: 22px;
  margin-top: 8px;
}
.starter-option[aria-pressed="true"] .starter-ball {
  color: #cc735b;
}
.starter-message {
  text-align: center;
  font-size: 12px;
  color: #58734a;
  margin: 22px 0 15px;
}
.starter-confirm {
  width: 100%;
}
.starter-confirm:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.starter-footnote {
  text-align: center;
  font-size: 9px;
  line-height: 1.7;
  color: #8a9280;
  margin: 13px 0 0;
}
@media (max-width: 420px) {
  .starter-options {
    gap: 6px;
  }
  .starter-option {
    padding: 10px 4px;
  }
  .starter-option img {
    height: 85px;
  }
  .starter-option strong {
    font-size: 10px;
  }
  .starter-option small {
    font-size: 9px;
  }
  .starter-intro h2 {
    font-size: 25px;
  }
}

/* Quieter layout: short labels, compact companion banner, fewer decorations. */
.sidebar .trainer-card {
  margin-top: auto;
}
.welcome {
  min-height: 155px;
  padding: 20px 28px;
}
.welcome h2 {
  font-size: 25px;
  margin-bottom: 14px;
}
.welcome-art {
  height: 120px;
}
.welcome-art img {
  width: 115px;
  height: 115px;
}
.orbit {
  width: 125px;
  height: 125px;
  border-width: 10px;
}
.spark,
.companion-label {
  display: none;
}
.starter-trigger {
  display: inline-block;
  margin: 0 16px 0 0;
}
.welcome .subtle-button {
  padding: 9px 12px;
}
.page-heading {
  margin-bottom: 24px;
}
.pokemon-line small {
  font-size: 8px;
}
.card-meta {
  margin-bottom: 10px;
}
.next-step {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.starter-intro {
  margin-bottom: 22px;
}
.starter-option small {
  display: none;
}
.starter-ball {
  margin-top: 4px;
}
.starter-footnote {
  font-size: 9px;
}
.private-view {
  padding: 40px 20px;
}
.private-view h2 {
  font-size: 23px;
}
.private-view p {
  max-width: 300px;
}
@media (max-width: 650px) {
  .welcome {
    min-height: 130px;
    padding: 18px;
  }
  .welcome h2 {
    font-size: 20px;
  }
  .welcome-art {
    height: 95px;
  }
  .welcome-art img {
    width: 90px;
    height: 90px;
  }
  .orbit {
    width: 90px;
    height: 90px;
  }
  .starter-trigger {
    font-size: 10px;
    margin-right: 8px;
  }
  .sidebar .trainer-card {
    display: none;
  }
}

.login-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f0f3e8;
}
.login-card {
  width: 100%;
  max-width: 360px;
  border: 1px solid #dce3d1;
  background: #fffef8;
  border-radius: 16px;
  padding: 32px;
}
.login-card h1 {
  font:
    500 25px "Space Grotesk",
    sans-serif;
  letter-spacing: -1px;
  margin: 22px 0;
}
.login-card .field {
  margin-bottom: 18px;
}
.login-card .primary {
  width: 100%;
}
.login-card input,
.login-card select {
  font-size: 16px;
}
.login-card #login-error {
  font-size: 12px;
  color: #a34f3c;
  line-height: 1.6;
}
.signed-out .sidebar,
.signed-out .shell {
  display: none;
}
.signed-out .login-screen {
  display: grid;
}
body:not(.signed-out) .login-screen {
  display: none;
}
.trainer-card {
  margin-top: auto;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.password-form .field{margin:16px 0}.password-form input{font-size:16px}.password-hint{font-size:11px;color:#7b8277;line-height:1.6}.password-error{font-size:12px;color:#a34f3c;line-height:1.6}.trainer-switch{flex-wrap:wrap}@media(max-width:650px){.topbar{height:auto;min-height:65px;gap:10px;padding-block:12px}.trainer-switch{gap:6px;justify-content:flex-end}.trainer-switch .secondary{padding:8px;font-size:10px}}

/* Native mouse drag/drop, with the existing task controls as an alternative. */
.quest-card[draggable=true]{cursor:grab;transition:opacity .15s,box-shadow .15s}.quest-card[draggable=true]:active{cursor:grabbing}.quest-card.is-dragging{opacity:.4}.column.drop-target{background:#e1ead6;outline:2px dashed #83a167;outline-offset:2px}.quest-card:hover{box-shadow:0 3px 12px #42633812}.card-open img{user-select:none;-webkit-user-drag:none}
/* A short, soft evolution reveal. No looping or strobing. */
.evolution-dialog{width:min(420px,calc(100% - 32px));text-align:center;padding:32px;background:radial-gradient(circle at 50% 45%,#e4f1d6,#fffef8 65%);overflow:hidden}.evolution-dialog .eyebrow{margin-top:8px}.evolution-dialog h2{font-size:23px;margin:12px 0;line-height:1.35}.evolution-stage{position:relative;height:240px;display:grid;place-items:center;isolation:isolate}.evolution-stage img{position:absolute;width:192px;height:192px;object-fit:contain;image-rendering:pixelated}.evolution-before{animation:evolveAway 1.7s ease-in-out forwards}.evolution-after{animation:evolveArrive 2s ease-out both}.evolution-ring{position:absolute;border-radius:50%;width:180px;height:180px;border:1px solid #a7c591;box-shadow:0 0 45px #c7e6ab77;animation:evolveRing 1.8s ease-out both;z-index:-1}.ring-two{width:130px;height:130px;animation-delay:.2s;border-style:dashed}.evolution-star{position:absolute;color:#a4b97e;font-size:25px;animation:evolveSpark 2s ease-out both}.star-one{left:10%;top:25%}.star-two{right:12%;top:15%;animation-delay:.15s}.star-three{right:16%;bottom:15%;font-size:18px;animation-delay:.3s}.evolution-dialog #evolution-message{font-size:13px;color:#5e7b4a;margin:8px 0 24px;min-height:22px}.evolution-dialog .primary{min-width:150px}
@keyframes evolveAway{0%{opacity:1;transform:scale(1)}45%{opacity:1;transform:scale(.8);filter:brightness(1.6)}65%,100%{opacity:0;transform:scale(.45);filter:brightness(2)}}
@keyframes evolveArrive{0%,50%{opacity:0;transform:scale(.45);filter:brightness(1.8)}78%{opacity:1;transform:scale(1.12);filter:brightness(1.1)}100%{opacity:1;transform:scale(1);filter:none}}
@keyframes evolveRing{0%{opacity:0;transform:scale(.4) rotate(0)}40%{opacity:1}100%{opacity:0;transform:scale(1.7) rotate(90deg)}}
@keyframes evolveSpark{0%,25%{opacity:0;transform:translateY(20px) scale(.5)}60%{opacity:1}100%{opacity:0;transform:translateY(-25px) scale(1.1)}}
@media(prefers-reduced-motion:reduce){.evolution-stage *{animation:none!important}.evolution-before,.evolution-ring,.evolution-star{display:none}.evolution-after{opacity:1;transform:none}}

/* Backward moves: one impact, a brief recoil, then the earlier form. */
.is-devolving .evolution-before{animation:hitAndReturn 1.7s ease-out forwards}.is-devolving .evolution-after{animation:evolveArrive 2s ease-out both}.hit-mark{position:absolute;top:50px;right:80px;color:#d7a36b;font-size:70px;line-height:1;z-index:2;pointer-events:none;animation:impactPop .55s ease-out both}.is-devolving .evolution-ring{border-color:#d9bd91;box-shadow:0 0 35px #e7d4af66}.is-devolving .evolution-star{color:#bca37e}
@keyframes hitAndReturn{0%{opacity:1;transform:translateX(0) rotate(0) scale(1)}12%{transform:translateX(-12px) rotate(-9deg) scale(.95)}24%{transform:translateX(6px) rotate(5deg) scale(.96)}37%{opacity:1;transform:translateX(0) rotate(0) scale(1)}65%,100%{opacity:0;transform:translateY(10px) scale(.45)}}
@keyframes impactPop{0%{opacity:0;transform:scale(.3) rotate(-15deg)}25%{opacity:1;transform:scale(1.1) rotate(5deg)}100%{opacity:0;transform:scale(1.5) rotate(15deg)}}
@media(prefers-reduced-motion:reduce){.hit-mark{display:none}.is-devolving .evolution-before{display:none}}
