.progress-hub {
  padding: 25px 0 27px;
  border-top: 1px solid #e8dce0;
}
.hub-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 19px;
}
.hub-heading h2 {
  font-size: 25px;
  margin-top: 7px;
}
.hub-heading .eyebrow {
  font-size: 12px;
}
.collection-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid #e7d6d0;
  background: #fff9ed;
  border-radius: 13px;
  color: #aa8252;
  text-align: left;
}
.collection-button > svg:first-child {
  width: 24px;
  height: 24px;
  color: #c7a15b;
}
.collection-button > svg:last-child {
  width: 16px;
  height: 16px;
}
.collection-button strong {
  display: block;
  font: 500 21px var(--display);
  line-height: 1.1;
}
.collection-button small {
  font-size: 12px;
  color: #7c6575;
}
.collection-button:hover {
  background: #fff2da;
  transform: translateY(-2px);
}
.hub-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.hub-metrics > div {
  background: #fffaf4c9;
  border: 1px solid #e9dfe1;
  border-radius: 14px;
  padding: 14px 18px;
}
.hub-metrics > div > span {
  font-size: 12px;
  font-weight: 800;
  color: #7b6478;
}
.hub-metrics strong {
  display: block;
  font: 500 30px var(--display);
  color: #97749d;
  margin: 4px 0 10px;
}
.hub-metrics strong small {
  font: 700 13px var(--font);
  color: #776477;
}
.mini-progress {
  height: 5px;
  border-radius: 8px;
  background: #e9dfe8;
  overflow: hidden;
}
.mini-progress > span {
  display: block;
  height: 100%;
  border-radius: 8px;
  background: #e998b7;
  transition: width 0.25s;
}
.hub-metrics > div:first-child .mini-progress > span {
  background: #b1c9aa;
}
.hub-metrics > div:nth-child(2) .mini-progress > span {
  background: #dfbd79;
}
.record-status {
  margin-top: 12px;
  min-height: 23px;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  color: #7a6477;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.record-status svg {
  width: 13px;
  height: 13px;
}
.record-status.is-record {
  color: #b37b40;
  background: #fff0ce;
  border-radius: 7px;
  padding: 4px 5px;
}
.mission-panel {
  padding-top: 23px;
  color: #7e627d;
  min-width: 0;
}
.mission-panel details {
  border: 1px solid #e8dce1;
  background: #fffaf3d9;
  border-radius: 17px;
  overflow: hidden;
}
.mission-panel summary {
  cursor: pointer;
  padding: 15px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  list-style: none;
  font-size: 12px;
  font-weight: 900;
}
.mission-panel summary::-webkit-details-marker {
  display: none;
}
.mission-panel summary > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mission-panel summary svg {
  width: 17px;
  height: 17px;
  color: #c49b5c;
}
.mission-panel summary > b {
  font-size: 12px;
  font-weight: 800;
  color: #7d6478;
  white-space: nowrap;
}
.mission-panel summary:focus-visible {
  outline: 3px solid #b188ba;
  outline-offset: -4px;
  border-radius: 17px;
}
.mission-body {
  padding: 0 12px 16px;
}
.mission-note {
  font-size: 12px;
  line-height: 1.7;
  color: #796479;
  border-top: 1px dashed #eadde5;
  padding-top: 12px;
  margin-bottom: 13px;
}
.mission-list {
  display: grid;
  gap: 15px;
}
.mission-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  min-width: 0;
}
.mission-check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid #e5d9e3;
  border-radius: 50%;
  color: #b79daf;
  background: #f8f0f4;
}
.mission-check svg {
  width: 12px;
  height: 12px;
}
.mission-row > div {
  min-width: 0;
  flex: 1;
}
.mission-row strong {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  display: block;
}
.mission-status {
  display: block;
  font-size: 12px;
  color: #7b6376;
  margin: 4px 0;
}
.mission-row .mini-progress {
  height: 3px;
  margin-top: 6px;
}
.mission-row.is-ready .mission-check {
  background: #fff0cd;
  border-color: #e9d0a1;
  color: #c2964c;
}
.mission-row.is-earned .mission-check {
  background: #e6efdf;
  border-color: #cbdcbe;
  color: #7a9c6e;
}
.mission-row.is-earned .mission-status {
  color: #8aa37d;
}
.mission-body > .text-button {
  font-size: 12px;
  justify-content: flex-start;
  margin-top: 17px;
  line-height: 1.6;
}
.mission-body > .text-button + button {
  margin-top: 12px;
}
.mission-body > .text-button svg {
  width: 13px;
  height: 13px;
}
dialog[data-kind="achievements"],
dialog[data-kind="result"] {
  width: min(760px, calc(100vw - 32px));
}
.collection-totals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 23px 0;
  color: #7c657a;
  font-size: 12px;
}
.collection-totals > span {
  border: 1px solid #eadfe7;
  border-radius: 12px;
  padding: 11px 5px;
  background: #f8f0f4;
}
.collection-totals strong {
  display: block;
  font: 500 23px var(--display);
  color: #98749d;
  margin-bottom: 4px;
}
.badge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
}
.achievement-card {
  border: 1px solid #eadce3;
  border-radius: 16px;
  background: #fff7ef;
  padding: 22px 13px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.achievement-card.is-earned {
  border-color: #e5c89c;
  background: #fff8e8;
}
.badge-seal {
  isolation: isolate;
  --seal: #d889ad;
  --seal-pale: #f9dfe9;
  display: inline-flex;
  width: 47px;
  height: 47px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 3px solid #fff8ed;
  background: var(--seal-pale);
  color: var(--seal);
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 1px var(--seal),
    0 3px 0 var(--seal);
  position: relative;
  margin-bottom: 10px;
}
.badge-seal:before,
.badge-seal:after {
  content: "";
  position: absolute;
  width: 13px;
  height: 17px;
  background: var(--seal);
  bottom: -12px;
  z-index: -1;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%);
}
.badge-seal:before {
  left: 4px;
  transform: rotate(16deg);
}
.badge-seal:after {
  right: 4px;
  transform: rotate(-16deg);
}
.badge-seal > svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.7;
}
.tone-gold {
  --seal: #c5a059;
  --seal-pale: #f7e7bb;
}
.tone-mint {
  --seal: #89a77b;
  --seal-pale: #e4eedc;
}
.tone-lilac {
  --seal: #a184b7;
  --seal-pale: #eadef1;
}
.achievement-card.is-locked .badge-seal {
  filter: grayscale(0.65);
  opacity: 0.55;
}
.achievement-card h3 {
  font-size: 19px;
  margin: 9px 0 7px;
}
.achievement-card p {
  font-size: 12px;
  color: #7b6579;
  line-height: 1.7;
  flex: 1;
}
.badge-status {
  font-size: 12px;
  font-weight: 800;
  color: #7c6577;
  margin: 11px 0 9px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.badge-status svg {
  width: 12px;
  height: 12px;
}
.achievement-card.is-earned .badge-status {
  color: #a58344;
}
.achievement-card .mini-progress {
  width: 100%;
  height: 4px;
}
.collection-note {
  font-size: 12px !important;
  line-height: 1.8 !important;
  margin-top: 21px;
  color: #7c6578;
}
.result-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 25px;
  align-items: start;
  text-align: left;
}
.result-summary {
  text-align: center;
  padding-top: 4px;
}
.result-summary h2 {
  font-size: 33px;
  line-height: 1.05;
}
.result-summary > p {
  font-size: 13px;
  color: #7b6378;
  line-height: 1.8;
}
.result-summary .result-stars {
  margin-top: 21px;
  margin-bottom: 20px;
  gap: 7px;
}
.result-summary .result-stars svg {
  width: 33px;
  height: 33px;
}
.result-summary .result-stars svg:nth-child(2) {
  width: 43px;
  height: 43px;
}
.result-summary .result-score {
  font-size: 48px;
  margin-top: 18px;
}
.result-score small {
  margin-top: 3px;
}
.record-banner {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  text-align: left;
  font-size: 12px;
  padding: 10px;
  border-radius: 10px;
  background: #f3e9f0;
  color: #7d6379;
  margin: 16px 0;
}
.record-banner > svg {
  width: 18px;
  height: 18px;
}
.record-banner small {
  display: block;
  font-size: 12px;
  margin-top: 4px;
  opacity: 0.8;
}
.record-banner.is-record {
  background: #fff0ce;
  color: #ae813c;
  border: 1px solid #ebd3a6;
}
.score-breakdown {
  display: grid;
  gap: 9px;
  text-align: left;
  border-top: 1px dashed #e7d9e1;
  padding-top: 14px;
}
.score-breakdown > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #796578;
}
.score-breakdown strong {
  color: #8b6a88;
  font-weight: 900;
  font-size: 12px;
}
.accuracy-comparison {
  font-size: 12px !important;
  text-align: left;
  margin-top: 14px;
  color: #a08a9c !important;
}
.round-report > .eyebrow {
  font-size: 12px;
  letter-spacing: 0.8px;
}
.report-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 13px;
}
.report-metrics > div {
  background: #f5edf3;
  border: 1px solid #eadee8;
  border-radius: 11px;
  padding: 10px 11px;
  min-width: 0;
}
.report-metrics > div > span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #7c6479;
}
.report-metrics strong {
  font: 500 25px var(--display);
  color: #9b749f;
  display: block;
  margin: 4px 0;
}
.report-metrics small {
  font-size: 12px;
  color: #7b6579;
  line-height: 1.65;
  display: block;
}
.report-note {
  font-size: 12px;
  line-height: 1.8;
  color: #796377;
  margin-top: 9px;
}
.result-missions {
  border-top: 1px dashed #e5d7e0;
  margin-top: 15px;
  padding-top: 14px;
}
.result-missions h3 {
  font-size: 20px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.result-missions h3 > span {
  font: 700 12px var(--font);
  color: #7c6578;
}
.result-missions .mission-row + .mission-row {
  margin-top: 9px;
}
.result-missions .mission-row strong {
  font-size: 12px;
}
.result-missions .mission-check {
  width: 20px;
  height: 20px;
}
.result-missions .mission-status {
  margin: 2px 0;
}
.result-missions > p {
  font-size: 12px;
  color: #7c6376;
  margin-top: 9px;
}
.new-badges {
  margin-top: 24px;
  padding: 17px 15px;
  border: 1px solid #ebd7b3;
  border-radius: 13px;
  background: #fff4df;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
}
.new-badges .eyebrow {
  font-size: 12px;
  letter-spacing: 0.8px;
  color: #7e6656;
}
.new-badges > div > strong {
  display: block;
  font: 500 18px var(--display);
  margin-top: 6px;
  color: #ad8b56;
}
.new-badge-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}
.new-badge-list > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 75px;
  text-align: center;
}
.new-badge-list .badge-seal {
  width: 30px;
  height: 30px;
  border-width: 2px;
  margin-bottom: 4px;
}
.new-badge-list .badge-seal svg {
  width: 15px;
  height: 15px;
}
.new-badge-list .badge-seal:before,
.new-badge-list .badge-seal:after {
  height: 10px;
  width: 9px;
  bottom: -7px;
}
.new-badge-list b {
  font-size: 12px;
  line-height: 1.5;
  color: #81664e;
}
.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}
.result-actions .primary-button,
.result-actions .secondary-button {
  margin: 0 !important;
  font-size: 14px !important;
  padding: 13px 15px !important;
  border-radius: 12px !important;
}
.result-collection-link {
  font-size: 12px;
  margin-top: 20px;
}
@media (max-width: 1100px) {
  .mission-panel {
    grid-column: 2;
    grid-row: 2;
    padding-top: 0;
  }
  .score-panel {
    grid-row: 1 / span 2;
  }
  .mission-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .mission-body > .text-button {
    margin-top: 13px;
    display: inline-flex;
    margin-right: 20px;
  }
  .mission-note {
    font-size: 12px;
  }
  .mission-panel summary {
    padding: 12px 15px;
  }
  .mission-body {
    padding: 0 15px 13px;
  }
}
@media (max-width: 760px) {
  .header-nav {
    gap: 17px;
  }
  .hub-heading h2 {
    font-size: 23px;
  }
  .hub-metrics {
    gap: 10px;
  }
  .hub-metrics > div {
    padding: 12px;
  }
  .badge-grid {
    gap: 9px;
  }
  .achievement-card {
    padding: 18px 10px 12px;
  }
  .achievement-card h3 {
    font-size: 17px;
  }
  .result-layout {
    gap: 19px;
  }
  .mission-list {
    gap: 10px;
  }
  .mission-row strong {
    font-size: 12px;
  }
  .mission-row {
    gap: 5px;
  }
  .mission-check {
    width: 19px;
    height: 19px;
  }
  .mission-status {
    font-size: 12px;
  }
}
@media (max-width: 540px) {
  .progress-hub {
    padding: 22px 0;
  }
  .hub-heading {
    gap: 10px;
    margin-bottom: 15px;
  }
  .hub-heading h2 {
    font-size: 22px;
    max-width: 190px;
  }
  .hub-heading .eyebrow {
    font-size: 12px;
    letter-spacing: 0.8px;
  }
  .collection-button {
    padding: 9px;
    gap: 7px;
  }
  .collection-button > svg:first-child {
    width: 18px;
    height: 18px;
  }
  .collection-button > svg:last-child {
    display: none;
  }
  .collection-button strong {
    font-size: 19px;
  }
  .collection-button small {
    font-size: 12px;
  }
  .hub-metrics {
    gap: 8px;
  }
  .hub-metrics > div {
    padding: 11px 10px;
  }
  .hub-metrics > div > span {
    font-size: 12px;
  }
  .hub-metrics strong {
    font-size: 26px;
  }
  .hub-metrics strong small {
    font-size: 12px;
  }
  .record-status {
    grid-column: 1 / -1;
    margin-top: 9px;
    min-height: 16px;
    font-size: 12px;
  }
  .tools {
    grid-row: 5;
    margin-top: 8px;
  }
  .game-layout {
    gap: 16px;
  }
  .score-panel {
    order: 0;
  }
  .mission-panel {
    order: 1;
    width: 100%;
  }
  .board-section {
    order: 2;
  }
  .mission-panel summary {
    padding: 11px 13px;
    font-size: 12px;
  }
  .mission-panel summary > b {
    font-size: 12px;
  }
  .mission-panel summary:after {
    content: "+";
    font-size: 16px;
    font-weight: 600;
    color: #b495a9;
  }
  .mission-panel details[open] summary:after {
    content: "−";
  }
  .mission-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .mission-row strong {
    font-size: 12px;
  }
  .mission-status {
    font-size: 12px;
  }
  .mission-panel summary > span {
    flex: 1;
  }
  .mission-panel summary > b {
    margin-right: 8px;
  }
  .collection-totals {
    gap: 5px;
    margin: 18px 0;
  }
  .collection-totals > span {
    font-size: 12px;
    padding: 9px 3px;
  }
  .collection-totals strong {
    font-size: 20px;
  }
  .badge-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .achievement-card {
    padding: 17px 10px 11px;
  }
  .achievement-card h3 {
    font-size: 17px;
  }
  .achievement-card p {
    font-size: 12px;
  }
  .badge-seal {
    width: 39px;
    height: 39px;
  }
  .badge-seal svg {
    width: 19px;
    height: 19px;
  }
  .result-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .result-summary h2 {
    font-size: 32px;
  }
  .result-summary > p {
    max-width: 290px;
    margin: auto;
  }
  .result-summary .result-stars {
    margin-top: 12px;
    margin-bottom: 14px;
  }
  .result-summary .result-score {
    font-size: 43px;
    margin-top: 13px;
  }
  .record-banner {
    margin: 13px 0;
  }
  .score-breakdown {
    padding-top: 11px;
  }
  .accuracy-comparison {
    margin-top: 10px;
  }
  .report-metrics {
    gap: 8px;
  }
  .report-metrics strong {
    font-size: 27px;
  }
  .report-metrics > div {
    padding: 11px;
  }
  .report-metrics small {
    font-size: 12px;
  }
  .new-badges {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
    gap: 15px;
  }
  .new-badge-list {
    justify-content: flex-start;
    gap: 18px;
  }
  .new-badges > div > strong {
    font-size: 19px;
  }
  .result-actions {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .result-actions .primary-button,
  .result-actions .secondary-button {
    font-size: 14px !important;
  }
  .result-collection-link {
    font-size: 12px;
  }
}
/* Labels, descriptions and counters each get their own space. */
.mission-panel summary {
  flex-wrap: wrap;
  gap: 10px;
}
.mission-panel summary > span {
  min-width: 0;
}
.mission-row strong,
.mission-status {
  overflow-wrap: break-word;
}
.achievement-card {
  gap: 8px;
}
.achievement-card p {
  margin-block: 0;
}
@media (min-width: 541px) and (max-width: 900px) {
  .mission-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 540px) {
  .hub-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .hub-heading h2 {
    max-width: none;
    margin-bottom: 0;
  }
  .collection-button {
    width: 100%;
    padding: 14px 16px;
  }
  .collection-button > span {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
  }
  .collection-button > svg:last-child {
    display: block;
  }
  .hub-metrics {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hub-metrics > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 16px;
    padding: 16px;
  }
  .hub-metrics strong {
    margin: 0;
  }
  .hub-metrics .mini-progress {
    grid-column: 1 / -1;
  }
  .collection-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .collection-totals > span {
    padding: 12px 8px;
  }
  .badge-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .achievement-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 8px;
    padding: 18px;
    text-align: left;
    align-items: start;
  }
  .achievement-card .badge-seal {
    grid-column: 1;
    grid-row: 1 / 4;
    margin: 4px 0 12px;
  }
  .achievement-card h3,
  .achievement-card p,
  .achievement-card .badge-status,
  .achievement-card .mini-progress {
    grid-column: 2;
    margin: 0;
  }
  .achievement-card p {
    line-height: 1.65;
  }
  .achievement-card .badge-status {
    margin-block: 4px;
  }
  .mission-panel summary {
    flex-wrap: nowrap;
  }
  .report-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .report-metrics > div {
    padding: 14px;
  }
  .score-breakdown > div {
    flex-wrap: wrap;
    gap: 8px;
  }
}
