/* Mobile-only additions stay invisible in the existing desktop layout. */
.mobile-only,.mobile-tabs{display:none}
@media(max-width:700px){
  .mobile-tree-shell{--mobile-tab-height:68px;padding-bottom:calc(var(--mobile-tab-height) + env(safe-area-inset-bottom,0px));scroll-padding-bottom:calc(var(--mobile-tab-height) + env(safe-area-inset-bottom,0px) + 16px)}
  .mobile-tree-shell>header{border:0;background:#0b2922;padding-top:env(safe-area-inset-top,0px)}
  .mobile-tree-shell .navbar{width:calc(100% - 36px);height:56px;gap:12px}
  .mobile-tree-shell .navbar .brand{font-size:25px;letter-spacing:-.8px;gap:8px}
  .mobile-tree-shell .navbar .brandmark{width:23px;height:30px}
  .mobile-tree-shell .nav-right{gap:8px}
  .mobile-tree-shell .nav-right i,.mobile-tree-shell .navbar .login{display:none}
  .mobile-tree-shell .nav-right .locale-btn{min-height:40px;padding:8px 9px;border:1px solid #d8bc8030;border-radius:20px;background:#ffffff04;font-size:10px;letter-spacing:.8px}
  .mobile-tree-shell .night{background:radial-gradient(ellipse at 50% 43%,#214b36 0%,#12362b 40%,#0b2922 76%)}
  .mobile-tree-shell .sky{opacity:.38}
  .mobile-tree-shell .hero{width:calc(100% - 36px);padding:8px 0 24px;gap:0}
  .mobile-tree-shell .hero-kicker,.mobile-tree-shell .hero .lead,.mobile-tree-shell .hero .actions{display:none}
  .mobile-tree-shell .hero h1,.mobile-tree-shell .hero h1.owner-title{order:0;width:100%;max-width:550px;font:500 clamp(30px,8.3vw,43px)/1.06 var(--serif);letter-spacing:-.9px;margin:3px 0 12px;text-align:center;color:#f5ead2;text-wrap:balance}
  .mobile-tree-shell .desktop-title{display:none}
  .mobile-tree-shell .mobile-title{display:block}
  .mobile-tree-shell .countdown{order:1;display:flex;flex-direction:column;gap:6px;width:100%;padding:0 0 9px;margin:0;border:0}
  .mobile-tree-shell .caption{font-size:8px;letter-spacing:1.55px;max-width:none;text-align:center;color:#c5d0bf;line-height:1.4}
  .mobile-tree-shell .digits{gap:15px;justify-content:center}
  .mobile-tree-shell .digits div{min-width:39px}
  .mobile-tree-shell .digits strong{font:500 27px/1 var(--serif);color:#e7cc93}
  .mobile-tree-shell .digits small{font-size:8px;letter-spacing:.65px;margin-top:3px;color:#a9bda9}
  .mobile-tree-shell .digits b{color:#9d956f;font-size:16px;margin-top:4px}
  .mobile-tree-shell .showcase{order:2;max-width:570px;width:calc(100% + 20px);margin-inline:-10px}
  .mobile-tree-shell .stage{height:clamp(270px,42svh,420px);border:0;border-radius:0;background:radial-gradient(ellipse at 50% 68%,#6f89591a,transparent 62%);box-shadow:none;overflow:hidden}
  .mobile-tree-shell .stage-rim,.mobile-tree-shell .stage:before{display:none}
  .mobile-tree-shell .stage:after{bottom:9%;left:16%;width:68%;height:14%;background:radial-gradient(ellipse,#c6b46d18,transparent 70%)}
  .mobile-tree-shell .stage canvas{top:0;height:100%;width:100%}
  .mobile-tree-shell .stage-header{inset:7px 7px auto;align-items:flex-start}
  .mobile-tree-shell .stage-badge{margin-top:3px;border-color:#dac18b26;background:#0b292280;font-size:7px;padding:5px 8px;max-width:calc(100% - 105px);letter-spacing:1px}
  .mobile-tree-shell .stage-tools{gap:7px}
  .mobile-tree-shell .stage-tools button{height:38px;width:38px;border-color:#d6c69630;background:#12382dbb;color:#d5d5bd}
  .mobile-tree-shell .stage-tools .ico{width:16px;height:16px}
  .mobile-tree-shell .stage-foot{inset:auto 8px 6px;min-height:36px}
  .mobile-tree-shell .rotate-pill{min-height:34px;font-size:9px;letter-spacing:.2px;border-color:#d8c48d25;background:#0b2922b8;padding:7px 12px;color:#bccbb6}
  .mobile-tree-shell .gift-count{min-height:36px;min-width:40px;justify-content:center;font-size:10px;border-color:#d8c48d30;background:#0b2922cc}
  .mobile-tree-shell .mobile-actions{order:3;display:grid;gap:9px;width:100%;max-width:500px;margin-top:10px}
  .mobile-tree-shell .mobile-hang{width:100%;min-height:52px;font-size:15px;letter-spacing:.2px;border:1px solid #f9e0aa80;border-radius:13px;background:linear-gradient(110deg,#f0d69d,#dcb975);color:#263c2c;box-shadow:0 5px 20px #03191040,inset 0 1px #fff4d580}
  .mobile-tree-shell .mobile-hang .ico{width:21px;height:21px}
  .mobile-tree-shell .mobile-secondary{display:grid;grid-template-columns:1fr 1fr;gap:9px}
  .mobile-tree-shell .mobile-secondary .btn{min-width:0;min-height:43px;padding:9px 10px;border-radius:11px;background:#ffffff04;border-color:#d4c08a38;color:#dddcc4;font-size:11px;font-weight:500}
  .mobile-tree-shell .mobile-secondary .ico{width:16px;height:16px;color:#d8bd80}
  .mobile-tree-shell .mobile-growth{order:4;display:block;width:100%;max-width:500px;margin:15px 0 0}
  .mobile-growth-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#afc1aa;font-size:10px;line-height:1.4}
  .mobile-growth-heading>span:first-child{display:flex;gap:6px;align-items:center;min-width:0}
  .mobile-growth-heading .ico{width:13px;height:13px;color:#d7b77b}
  #mobile-progress-label{flex:none;color:#e0c58b;font-variant-numeric:tabular-nums;direction:ltr}
  #mobile-progress{display:block;width:100%;height:5px;margin-top:8px;appearance:none;-webkit-appearance:none;overflow:hidden;border:0;border-radius:8px;background:#b4c4a51c;color:#dfbd7d;accent-color:#dfbd7d}
  #mobile-progress::-webkit-progress-bar{background:#b4c4a51c;border-radius:8px}
  #mobile-progress::-webkit-progress-value{background:linear-gradient(90deg,#ae925f,#e9cc92);border-radius:8px}
  #mobile-progress::-moz-progress-bar{background:#dfbd7d;border-radius:8px}
  /* No fabricated value while the client is waiting for the real contributor count. */
  #mobile-progress:indeterminate::-webkit-progress-value{background:transparent}
  #mobile-progress:indeterminate::-moz-progress-bar{background:transparent}
  .mobile-tree-shell .hero>.quiet,.mobile-tree-shell .intro-block>.quiet{order:5;justify-content:center;margin-top:10px;font-size:9px;color:#95aa94}
  .mobile-tree-shell #tree-extra{order:6;width:100%;max-width:500px}
  .mobile-tree-shell .tree-stats{justify-content:center;font-size:10px;margin-top:12px}
  .mobile-tree-shell .bottom-gilt{background:linear-gradient(90deg,transparent,#ceaf7050,transparent);height:1px}
  .mobile-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;z-index:50;inset:auto 0 0;min-height:calc(var(--mobile-tab-height) + env(safe-area-inset-bottom,0px));padding:5px max(9px,env(safe-area-inset-right,0px)) calc(5px + env(safe-area-inset-bottom,0px)) max(9px,env(safe-area-inset-left,0px));background:#0b2821f5;border-top:1px solid #d2ba8130;box-shadow:0 -8px 24px #031d1726;backdrop-filter:blur(16px)}
  .mobile-tabs button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:58px;min-width:0;border:0;border-radius:12px;background:none;color:#8fa997;padding:6px 3px;font-size:10px;line-height:1.2}
  .mobile-tabs button .ico{width:22px;height:22px}
  .mobile-tabs button span{max-width:100%;overflow-wrap:anywhere;text-align:center}
  .mobile-tabs button.is-active,.mobile-tabs button[aria-current="page"],.mobile-tabs button[aria-selected="true"]{color:#e4c68a;background:linear-gradient(180deg,#e3c3840c,transparent)}
  .mobile-tabs button:focus-visible{outline-offset:-3px}
  .mobile-tree-shell #toast{bottom:calc(var(--mobile-tab-height) + env(safe-area-inset-bottom,0px) + 12px)}
}
@media(max-width:700px) and (max-height:720px){
  .mobile-tree-shell .hero{padding-top:2px;padding-bottom:18px}
  .mobile-tree-shell .hero h1,.mobile-tree-shell .hero h1.owner-title{font-size:30px;margin-bottom:9px}
  .mobile-tree-shell .stage{height:clamp(235px,38svh,280px)}
  .mobile-tree-shell .mobile-actions{margin-top:6px}
  .mobile-tree-shell .mobile-growth{margin-top:11px}
}
@media(max-width:350px){
  .mobile-tree-shell .navbar,.mobile-tree-shell .hero{width:calc(100% - 26px)}
  .mobile-tree-shell .navbar .brand{font-size:22px}
  .mobile-tree-shell .hero h1,.mobile-tree-shell .hero h1.owner-title{font-size:29px}
  .mobile-tree-shell .mobile-secondary .btn{font-size:10px}
}
@media(max-width:700px) and (max-height:620px){
  .mobile-tree-shell .stage{height:clamp(175px,32svh,215px)}
  .mobile-tree-shell .mobile-hang{min-height:48px}
  .mobile-tree-shell .mobile-secondary .btn{min-height:40px}
  .mobile-tree-shell .mobile-growth{margin-top:10px}
}
