.tree-page { --forest: #102a23; --winter: #faf0dc; --gold: #f0cc86; background: var(--forest); color: var(--winter); }
.tree-page .topbar { background: #102821; border-color: #ffffff20; }
.tree-page .brand, .tree-page .jump { color: var(--winter); }
.tree-scene {
  overflow: hidden;
  background: radial-gradient(ellipse at 70% 76%, #254e38, transparent 62%), linear-gradient(150deg, #102720, #112c25 60%, #203125);
  border-bottom: 1px solid #ffffff24;
}
.tree-stage { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 1.65fr); align-items: center; }
.tree-intro { z-index: 1; padding-block: 36px; }
.tree-intro h1 { font-size: clamp(3rem, 6.8vw, 6.9rem); line-height: .96; color: var(--winter); }
.tree-intro p { max-width: 29ch; font-size: 1rem; line-height: 1.5; color: #d3ddce; }
.tree-intro .tree-counter { color: var(--gold); font-weight: 750; margin: 24px 0 12px; }
.tree-cta {
  display: inline-flex; min-height: 46px; align-items: center; padding: 8px 17px;
  border-radius: 7px; background: var(--winter); color: #183728; font-weight: 750; text-decoration: none;
}
.tree-cta:hover { background: #f9d99b; }
.canopy { position: relative; aspect-ratio: 720 / 680; }
.canopy canvas { display: block; width: 100%; height: auto; }
.tree-ornament {
  --paper: #ffecd0;
  position: absolute; z-index: 1; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 5px;
}
.tree-ornament:nth-of-type(3n + 2) { --paper: #ffd1b2; }
.tree-ornament:nth-of-type(3n + 3) { --paper: #e2e8b8; }
.tree-ornament::before {
  content: ""; position: absolute; left: 50%; bottom: calc(50% + clamp(10px, 2.4vw, 17px));
  width: 1px; height: clamp(7px, 1.65vw, 15px); background: #e1bb77; transform: rotate(12deg);
}
.tree-ornament span {
  position: relative; width: clamp(17px, 4vw, 30px); height: clamp(23px, 5vw, 41px);
  border-radius: 2px 2px 0 0; background: var(--paper); color: #94664a;
  transform: rotate(-9deg); box-shadow: 1px 4px 11px #101f1b85;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 83% 92%, 67% 100%, 50% 92%, 33% 100%, 17% 92%, 0 100%);
}
.tree-ornament:nth-of-type(even) span { transform: rotate(12deg); }
.tree-ornament span::before {
  content: ""; position: absolute; inset: 20% 20% 27%;
  background: linear-gradient(currentColor 0 2px, transparent 2px 40%, currentColor 40% 47%, transparent 47% 65%, currentColor 65% 72%, transparent 72%);
}
.tree-ornament:hover, .tree-ornament:focus-visible { z-index: 2; }
.tree-ornament:hover span, .tree-ornament:focus-visible span { scale: 1.17; }
.tree-gallery { padding-block: 32px 55px; }
.tree-gallery h2 { font: bold clamp(1.7rem, 4vw, 2.6rem)/1.12 var(--serif); margin: 0; }
.tree-gallery > p { color: #d3ddce; }
.gallery-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; padding: 0; margin: 19px 0; list-style: none; }
.gallery-receipt { display: grid; height: 100%; gap: 4px; background: #e7dcc1; padding: 14px 16px; border-radius: 6px; color: #25352a; text-decoration: none; overflow-wrap: anywhere; }
.gallery-receipt:hover { background: #ffecd0; }
.gallery-receipt time, .gallery-receipt > span { color: #5a4940; font-size: .84rem; }
.tree-pagination { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.tree-pagination a { display: inline-flex; min-height: 44px; align-items: center; color: var(--winter); }
.public-chek { max-width: 530px; margin-block: 30px 60px; }
.public-paper { background: #fff3da; color: #202c20; border-radius: 6px; padding: clamp(18px, 6vw, 42px); box-shadow: 0 14px 30px #030e0966; }
.public-mark { display: block; margin-inline: auto; }
.public-paper h1 { text-align: center; font-size: clamp(1.9rem, 7vw, 3.2rem); color: #263d2e; margin: 8px 0 14px; }
.receipt-name { text-align: center; overflow-wrap: anywhere; margin: 0 0 18px; }
.receipt-lines { border-block: 1px dashed #7e715b; margin: 0; padding: 8px 0; list-style: none; }
.receipt-lines li { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; padding: 7px 0; overflow-wrap: anywhere; }
.receipt-lines strong { font-family: var(--mono); color: #732f37; }
.receipt-wish { display: grid; gap: 3px; margin: 18px 0 0; overflow-wrap: anywhere; }
.public-border { display: block; width: 100%; height: 26px; object-fit: cover; margin-top: 21px; }
.public-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.public-new, .public-remove { display: inline-flex; min-height: 44px; align-items: center; color: var(--winter); text-decoration: underline; }
.public-new { border-color: transparent; }
.public-remove { padding: 5px 8px; background: none; border: 0; }
.public-status { color: var(--gold); }
.tree-page :focus-visible { outline: 2px solid #f0a843; outline-offset: 3px; }
.tree-page [hidden] { display: none; }
@media (max-width: 650px) {
  .tree-stage { grid-template-columns: 1fr; }
  .tree-intro { padding-block: 26px 0; }
  .tree-intro .tree-counter { margin-top: 12px; }
  .canopy { width: min(100%, 420px); margin-inline: auto; }
}
