.tree-mode .voxel-life {
  display: none;
}
.tree-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: #fff7de;
}
.tree-objective {
  position: absolute;
  top: 112px;
  left: 22px;
  width: 290px;
  border: 1px solid #e6dfb45c;
  border-radius: 13px;
  background: linear-gradient(140deg, #214735ed, #345942ed);
  padding: 16px 17px;
  box-shadow: 0 6px 0 #1d3b2c55;
  backdrop-filter: blur(8px);
}
.tree-eyebrow {
  display: block;
  color: #e0dba7;
  font-size: 9px;
  letter-spacing: 0.11em;
  font-weight: 800;
  margin-bottom: 8px;
}
.tree-objective > strong {
  display: block;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.06em;
}
.tree-objective > p {
  font-size: 11px;
  color: #d4dfba;
  margin-top: 7px;
  line-height: 1.5;
}
.tree-hud-actions {
  display: flex;
  gap: 7px;
  margin-top: 14px;
}
.tree-hud-actions button {
  pointer-events: auto;
  min-height: 44px;
  background: #d9dca32b;
  color: #fff7dc;
  border: 1px solid #e4dfa878;
  padding: 8px 12px;
  font-size: 11px !important;
}
.tree-hud-actions button:first-child {
  background: #eadbab;
  color: #284433;
  border-color: #f5e9b4;
}
.tree-hud-actions b {
  margin-left: 5px;
  color: inherit;
  font-size: 11px;
}
.tree-growth-status {
  display: block;
  width: 100%;
  min-height: 66px;
  margin-top: 12px;
  padding: 10px 0 0;
  border: 0;
  border-top: 1px solid #d2dfae45;
  border-radius: 0;
  background: transparent;
  color: #fff7dc;
  text-align: left;
  pointer-events: auto;
}
.tree-growth-status > span {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  align-items: center;
}
.tree-growth-status b {
  font-size: 12px;
}
.tree-growth-status i {
  font-size: 10px;
  font-style: normal;
  color: #e0dba7;
}
.tree-growth-status small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #e7e9c9;
}
.tree-growth-status progress {
  display: block;
  width: 100%;
  height: 6px;
  margin: 8px 0;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #163627;
  accent-color: #ead49a;
}
.tree-growth-status progress::-webkit-progress-bar {
  background: #163627;
}
.tree-growth-status progress::-webkit-progress-value {
  background: #ead49a;
}
.tree-growth-status progress::-moz-progress-bar {
  background: #ead49a;
}
.tree-growth-status:focus-visible {
  outline: 3px solid #ffe3a0;
  outline-offset: 4px;
}
.tree-growth-reward {
  margin-top: 16px;
  padding: 16px;
  background: #e7edd8;
  border: 1px solid #c7d3aa;
  border-radius: 12px;
  text-align: left;
}
.tree-growth-reward small {
  display: block;
  font-size: 11px;
  color: #58693e;
}
.tree-growth-reward strong {
  display: block;
  margin-top: 5px;
  font-size: 20px;
}
.tree-growth-reward p {
  font-size: 12px;
  line-height: 1.6;
  margin: 5px 0 0;
}
.tree-return-link {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  background: transparent;
  color: #3c613e;
  border: 1px solid #c2cfae;
  font-size: 13px !important;
}
.tree-growth-roadmap {
  display: grid;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 22px 0;
}
.tree-growth-roadmap li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border: 1px solid #dadfcf;
  border-radius: 12px;
  background: #f1f1e7;
}
.tree-growth-roadmap li.earned {
  background: #e4ecd8;
  border-color: #adbf96;
}
.tree-growth-roadmap li[aria-current] {
  border: 2px solid #7c9a69;
  background: #fffdf5;
}
.tree-growth-roadmap li > b {
  font-size: 15px;
  white-space: nowrap;
  color: #5e754d;
}
.tree-growth-roadmap li > div {
  flex: 1;
  min-width: 0;
}
.tree-growth-roadmap strong {
  display: block;
  font-size: 15px;
}
.tree-growth-roadmap span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: #5d6b52;
}
.tree-growth-roadmap em {
  font-size: 10px;
  font-style: normal;
  white-space: nowrap;
}
.tree-dialog {
  width: min(520px, calc(100vw - 30px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  border: 1px solid #c7c794;
  border-radius: 19px;
  background: #f8f5e8;
  color: #274231;
  padding: 28px;
  box-shadow: 0 24px 90px #132e2f66;
  font-family: inherit;
}
.tree-dialog::backdrop {
  background: #1029239c;
  backdrop-filter: blur(5px);
}
.tree-grade-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 18px 0;
}
.tree-grade-tabs button {
  min-height: 58px;
  border: 1px solid #cbd4ba;
  padding: 8px 5px;
  background: #fffdf4;
  color: #405934;
}
.tree-grade-tabs button[aria-pressed="true"] {
  background: #365b40;
  border-color: #365b40;
  color: #fff8dd;
}
.tree-grade-tabs strong {
  display: block;
  font-size: 13px;
}
.tree-grade-tabs small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  margin-top: 4px;
}
.tree-passport-section .uncollected {
  border-style: dashed;
  background: #f4f3e9;
}
.tree-passport-section article > small {
  display: block;
  font-size: 10px;
  margin-top: 7px;
  color: #596f4e;
}
.tree-realm-list button:disabled {
  opacity: 0.6;
  cursor: default;
}
.tree-dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  gap: 12px;
  color: #6c8061;
  margin-bottom: 18px;
}
.tree-dialog-top button {
  background: #e3e9d5;
  border: 1px solid #bbcaa8;
  color: #3d5838;
  padding: 8px 12px;
  min-width: 44px;
  font-size: 11px !important;
}
.tree-dialog h2 {
  font-size: 25px;
  line-height: 1.35;
  letter-spacing: -0.05em;
  word-break: keep-all;
}
.tree-dialog > p {
  font-size: 13px;
  color: #6d7d61;
  line-height: 1.7;
  margin-top: 10px;
}
.tree-dialog > small {
  display: block;
  font-size: 10px;
  line-height: 1.6;
  color: #7f866e;
  margin-top: 17px;
  word-break: keep-all;
}
.tree-realm-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.tree-realm-list button {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 13px;
  text-align: left;
  width: 100%;
  background: #fffdf6;
  border: 1px solid #d6dec8;
  min-height: 85px !important;
}
.tree-realm-list button:hover {
  border-color: var(--realm);
  background: #edf0dd;
}
.tree-realm-list button > b {
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--realm);
  color: #fff9df;
  box-shadow:
    inset 0 7px 0 #fff2,
    inset -7px 0 0 #0001;
  font: 32px var(--glyph);
}
.tree-realm-list strong {
  display: block;
  font-size: 16px;
}
.tree-realm-list small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: #7d8a70;
  margin-top: 4px;
  line-height: 1.5;
}
.tree-realm-list em {
  font-size: 12px;
  font-weight: 750;
  margin-left: auto;
  white-space: nowrap;
  color: #6b8457;
  font-style: normal;
}
.tree-realm-list i {
  font-style: normal;
  margin-left: 7px;
}
.tree-portal-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #647a58;
  background: #e7ecd7;
  padding: 12px 14px;
  border-radius: 10px;
  margin-top: 17px;
}
.tree-portal-total b {
  color: #38613e;
  font-size: 17px;
}
.tree-passport-section {
  margin-top: 21px;
}
.tree-passport-section h3 {
  font-size: 12px;
  color: #6f855c;
  margin-bottom: 9px;
}
.tree-passport-section > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.tree-passport-section article {
  border: 1px solid #d6ddc7;
  border-radius: 10px;
  background: #fffdf5;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 5px;
  gap: 6px;
}
.tree-passport-section article.found {
  border-color: #a5b37a;
  background: #edf1d9;
}
.tree-passport-section article > b {
  font: 38px var(--glyph);
  line-height: 1.3;
}
.tree-passport-section article > span {
  font-size: 11px;
  color: #6f7d60;
  text-align: center;
}
.tree-passport-section article.unknown {
  color: #bdc7ac;
}
.tree-passport-section article.unknown > span {
  font-size: 9px;
}
.tree-challenge-glyph {
  font: 86px var(--glyph);
  text-align: center;
  color: #365e3d;
  line-height: 1.4;
  margin: 0 0 16px;
}
.tree-challenge-glyph.collected {
  color: #9a742a;
  text-shadow: 0 3px 0 #e4d7a5;
}
.tree-answer-list {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}
.tree-answer-list button {
  width: 100%;
  background: #fffdf6;
  border: 1px solid #cbd6b7;
  color: #36523c;
  text-align: left;
  padding: 13px 16px;
  font-size: 16px !important;
  min-height: 53px !important;
}
.tree-answer-list button:hover {
  background: #e9efdc;
  border-color: #789a5b;
}
.tree-answer-list button:disabled {
  background: #ecede4;
  color: #919782;
  border-color: #d8dccb;
}
.tree-dialog .tree-answer-feedback {
  color: #8c6a33;
  font-size: 13px;
  background: #f1e9cf;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 12px;
}
.tree-answer-feedback:empty {
  display: none;
}
.tree-found-progress {
  background: #e5edd6;
  border-radius: 9px;
  color: #476e3e;
  text-align: center;
  padding: 11px;
  font-size: 13px;
  font-weight: 750;
  margin-top: 17px;
}
.tree-primary {
  display: block;
  width: 100%;
  background: #375d3c;
  color: #fff7d5;
  box-shadow: 0 4px 0 #203f29;
  border: 1px solid #284b2d;
  padding: 13px 15px;
  margin-top: 20px;
  font-size: 14px !important;
}
.tree-save-error {
  background: #f2e2d1;
  color: #8c5538 !important;
  padding: 10px;
  border-radius: 8px;
}
.tree-in-realm .voxel-bottom {
  display: none;
}
.tree-in-realm .voxel-touch-actions [data-voxel="place"],
.tree-in-realm .voxel-touch-actions [data-voxel="remove"] {
  display: none;
}
.tree-actionbar {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  background: #1c3b2fdb;
  padding: 12px 20px;
  border: 1px solid #e4e2b362;
  border-radius: 11px;
  text-align: center;
}
.tree-actionbar[hidden],
.tree-dash[hidden] {
  display: none;
}
.tree-actionbar > span {
  display: block;
  font-size: 13px;
  color: #f2ecc4;
}
.tree-actionbar > small {
  display: block;
  color: #c0d0b2;
  font-size: 10px;
  margin-top: 4px;
}
.tree-dash {
  position: absolute;
  pointer-events: auto;
  right: 15px;
  bottom: 196px;
  padding: 10px 13px;
  min-height: 51px !important;
  min-width: 50px;
  border: 1px solid #ffedbc;
  background: #a77b3cd9;
  color: #fff6db;
  font-size: 12px !important;
}
.tree-dash small {
  display: block;
  font-size: 9px;
  font-weight: 500;
}
.tree-dash:disabled {
  opacity: 0.65;
}
.tree-mode .voxel-context {
  bottom: 190px;
}
.tree-in-realm .voxel-context {
  bottom: 110px;
}
.tree-in-realm .voxel-brand {
  background: #344d42e8;
}
.tree-in-realm .voxel-toast {
  top: 114px;
}
.tree-dialog button:focus-visible {
  outline: 3px solid #c49c42;
  outline-offset: 3px;
}
@media (max-width: 700px) {
  .tree-objective {
    top: 105px;
    left: 12px;
    width: min(270px, calc(100% - 24px));
    padding: 12px 13px;
  }
  .tree-eyebrow {
    font-size: 8px;
    margin-bottom: 5px;
    letter-spacing: 0.07em;
  }
  .tree-objective > strong {
    font-size: 16px;
  }
  .tree-objective > p {
    font-size: 10px;
    margin-top: 5px;
  }
  .tree-hud-actions {
    gap: 6px;
    margin-top: 10px;
  }
  .tree-hud-actions button {
    font-size: 10px !important;
    padding: 7px 10px;
  }
  .tree-hud-actions b {
    font-size: 10px;
  }
  .tree-dialog {
    padding: 22px;
  }
  .tree-dialog h2 {
    font-size: 21px;
  }
  .tree-dialog > p {
    font-size: 12px;
  }
  .tree-realm-list {
    gap: 8px;
    margin-top: 19px;
  }
  .tree-realm-list button {
    gap: 10px;
    padding: 12px 10px;
    min-height: 75px !important;
  }
  .tree-realm-list button > b {
    width: 45px;
    height: 48px;
    font-size: 28px;
  }
  .tree-realm-list strong {
    font-size: 14px;
  }
  .tree-realm-list small {
    font-size: 9px;
  }
  .tree-realm-list em {
    font-size: 11px;
  }
  .tree-realm-list i {
    margin-left: 3px;
  }
  .tree-portal-total {
    font-size: 11px;
    padding: 10px 11px;
  }
  .tree-portal-total b {
    font-size: 15px;
  }
  .tree-mode .voxel-context {
    bottom: 112px;
    max-width: 65%;
  }
  .tree-in-realm .voxel-context {
    bottom: 103px;
  }
  .tree-in-realm .voxel-touch-actions {
    bottom: 124px;
  }
  .tree-in-realm .voxel-stick {
    bottom: 125px;
  }
  .tree-actionbar {
    bottom: 23px;
    padding: 10px 13px;
  }
  .tree-actionbar > span {
    font-size: 10px;
  }
  .tree-actionbar > small {
    display: none;
  }
  .tree-dash {
    bottom: 185px;
    right: 10px;
  }
  .tree-in-realm .voxel-toast {
    top: 88px;
  }
  .tree-passport-section article {
    min-height: 95px;
  }
  .tree-challenge-glyph {
    font-size: 72px;
  }
  .voxel-heading h1 {
    font-size: 21px;
  }
}
@media (max-height: 500px) {
  .tree-objective {
    top: 100px;
    max-width: 250px;
    padding: 9px 12px;
  }
  .tree-objective > p {
    display: none;
  }
  .tree-eyebrow {
    font-size: 8px;
  }
  .tree-objective > strong {
    font-size: 14px;
  }
  .tree-hud-actions {
    margin-top: 7px;
  }
  .tree-hud-actions button {
    min-height: 40px;
  }
  .tree-dialog {
    padding: 18px;
  }
  .tree-realm-list {
    margin-top: 14px;
  }
  .tree-realm-list button {
    min-height: 68px !important;
  }
  .tree-actionbar {
    bottom: 10px;
  }
  .tree-mode .voxel-context {
    bottom: 125px;
  }
  .tree-in-realm .voxel-context {
    bottom: 80px;
  }
  .tree-dash {
    bottom: 190px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tree-hud *,
  .tree-dialog * {
    animation: none !important;
    transition: none !important;
  }
}
