#passtreepanel .studio-tree {
  position: relative; align-self: start; justify-self: center; width: min(100%, 22rem);
  border-radius: 1.2rem; overflow: hidden; background: #142f46;
  box-shadow: 0 5px 20px #06152338;
}
#passtreepanel .studio-tree canvas {
  display: block; width: 100%; max-width: none; height: auto; aspect-ratio: 11/12;
  padding: 0; border: 0; margin: 0;
}
#branch-spots { position: absolute; inset: 0; pointer-events: none; }
#branch-spots button {
  pointer-events: auto; position: absolute; padding: 0; width: 48px; height: 48px;
  min-width: 48px; min-height: 48px; transform: translate(-50%, -50%);
  background: #142f46ee; border: 2px dashed #ffe6a5; color: #fff4dd;
  border-radius: 50%; font: 700 1.2rem Fredoka, sans-serif;
}
#branch-spots button:is(:focus-visible,:hover) { outline: 3px solid white; background: #226b50; }
.tree-lights { padding: 0; margin: 0 0 1rem; border: 0; }
.tree-lights legend { font-weight: 800; padding: 0 0 .5rem; }
#tree-lights, .tree-studio-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
#tree-lights button, #treeornaments button, .tree-studio-actions button {
  min-height: 48px; padding: .55rem .8rem; border-radius: .85rem;
}
#tree-lights button::before {
  content: ""; display: inline-block; width: .8rem; height: .8rem; border-radius: 50%;
  border: 1px solid #8ba7b2; margin-inline-end: .45rem; background: #254057;
}
#tree-lights [data-light="gold"]::before { background: #ffda85; }
#tree-lights [data-light="berry"]::before { background: linear-gradient(45deg,#e75a65 50%,#fff4dd 50%); }
#tree-lights [data-light="ice"]::before { background: #a9e4ff; }
#tree-lights [aria-pressed="true"], #treeornaments [aria-pressed="true"] {
  background: #f7cf83; color: #142f46; border-color: #e8b661;
}
#treeornaments .on-tree::before { content: "✓ "; }
.tree-prompt:not(:empty), .tree-studio-actions:has(button:not([hidden])) { margin-block-end: .75rem; }
.tree-prompt { font-weight: 750; }
#branch-spots[hidden], .tree-studio-actions button[hidden] { display: none; }
@media (max-width: 420px) {
  #passtreepanel .tree-layout { display: grid; grid-template-columns: minmax(0, 1fr); }
}
