#treeCelebration {
  position:absolute;
  inset:0;
  z-index:5;
  isolation:isolate;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  padding:clamp(58px,8vh,92px) max(12px,env(safe-area-inset-right)) max(clamp(17px,4.5vh,46px),env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
  overflow:hidden;
  background:#192549;
  color:#fff4d2;
  cursor:default;
}
.tree-picture,.tree-panorama {position:absolute;z-index:-1;inset:0;width:100%;height:100%;pointer-events:none}
.tree-picture {image-rendering:pixelated}
.tree-heading {text-align:center;pointer-events:none;text-shadow:1px 2px 0 #282344}
.tree-heading p {font:700 clamp(12px,1.45vw,17px)/1.4 Golos,sans-serif;color:#f6cd82;margin:0 0 9px}
.tree-heading h2 {font:400 clamp(15px,3.2vw,39px)/1.45 var(--pixel);letter-spacing:-.06em;text-shadow:2px 3px #865c70,3px 5px #30203e}
.tree-heading h2:focus {outline:none}
.tree-inventory {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0;padding:0}
.tree-actions {display:flex;align-items:stretch;justify-content:center;gap:16px;max-width:100%;text-align:center}
.tree-actions button {
  --face:#c5ed78;--highlight:#eeffc2;--lip:#94b952;
  display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:64px;padding:12px 25px;
  border:3px solid #34283e;border-radius:7px;background:var(--face);color:#30263a;
  box-shadow:inset 0 3px var(--highlight),inset 0 -5px var(--lip),3px 5px #34283e;
  font:700 clamp(17px,1.6vw,21px)/1.15 Golos,sans-serif;touch-action:manipulation;
  transition:filter .12s,transform .12s,box-shadow .12s;
}
.tree-actions button:last-child {--face:#fff1d4;--highlight:#fffaed;--lip:#dfc397}
.tree-actions button svg {width:23px;height:23px;flex:none}
.tree-actions button:focus-visible {outline:3px solid #ffe9a3;outline-offset:4px}
@media (hover:hover) and (pointer:fine) {
  .tree-actions button:hover {background:var(--face);filter:brightness(1.06);transform:translateY(-2px);box-shadow:inset 0 3px var(--highlight),inset 0 -5px var(--lip),3px 7px #34283e}
}
.tree-actions button:active {transform:translate(2px,3px);box-shadow:inset 0 2px var(--highlight),inset 0 -2px var(--lip),1px 2px #34283e}
@media (max-width:510px) {
  .tree-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;width:min(100%,396px)}
  .tree-actions button {min-height:56px;padding:9px 6px;gap:6px;font-size:clamp(15px,4.2vw,17px)}
  .tree-actions button svg {width:18px;height:18px}
}
@media (max-width:350px) and (min-height:515px) {
  .tree-actions {grid-template-columns:1fr;width:min(100%,260px);gap:10px}
}
@media (max-aspect-ratio:3/4) {
  #treeCelebration {padding-top:max(clamp(58px,13vh,140px),env(safe-area-inset-top));padding-bottom:max(clamp(22px,8vh,86px),env(safe-area-inset-bottom))}
}
@media (max-height:460px) and (orientation:landscape) {
  #treeCelebration {padding-top:max(9px,env(safe-area-inset-top));padding-bottom:max(10px,env(safe-area-inset-bottom))}
  .tree-heading p {font-size:11px;margin-bottom:4px}
  .tree-heading h2 {font-size:18px}
  .tree-actions button {min-height:50px;font-size:16px;padding:9px 19px}.tree-actions button svg {width:19px;height:19px}
}
@media (prefers-reduced-motion:reduce) {
  .tree-actions button,.tree-actions button:hover,.tree-actions button:active {transform:none;transition:none}
}
