/* Reference-led live pages: real HTML values over original painted materials. */
.garden-world .world-base{background-image:url('assets/village-clean.webp');background-size:100% 100%}
body[data-page=farm] .garden-world .world-base{background-image:url('assets/farm-panda-world.webp')}
.garden-world .world-left,.garden-world .world-right,.world-hat{display:none!important}
.farm-journal.leafy-journal{border:8px solid #9b5f2b;border-radius:16px 13px 17px 12px;background:repeating-linear-gradient(3deg,#884719 0 8px,#965525 9px 13px,#754018 14px 15px);padding:6px;box-shadow:inset 0 0 0 2px #e5b773,0 2px 0 2px #56331a,0 8px 20px #34291555;overflow:visible}
.leafy-journal::before,.leafy-journal::after{content:'❧';position:absolute;z-index:3;font-size:62px;line-height:1;color:#3b8e21;text-shadow:1px 1px #183f13,-1px -1px #b0d35a;pointer-events:none}
.leafy-journal::before{left:-24px;top:54px;transform:rotate(35deg)}.leafy-journal::after{right:-19px;bottom:-17px;transform:rotate(-140deg)}
.leafy-journal .journal-wood{display:none}.leafy-journal .journal-tabs{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:0 0 5px;padding:0}.journal-tabs button{width:100%;min-width:0;min-height:43px}
.leafy-journal .referral-wood-title{display:none}.referral-paper{border:1px solid #e4c59c;border-radius:8px;padding:16px;min-height:245px;background:linear-gradient(115deg,#fff9e6,#f8e2b8);overflow:hidden}
.referral-paper .referral-friends{z-index:0;right:0;bottom:0;width:36%;mask-image:linear-gradient(90deg,transparent,#000 12%);pointer-events:none;border-radius:0 0 8px 0}
.referral-paper .referral-note{position:relative;z-index:1;max-width:65%;font-size:12px;line-height:1.45;margin:7px 0 12px}.referral-paper .referral-split{position:relative;z-index:1;margin:8px 31% 12px 0;grid-template-columns:repeat(3,1fr)}
.referral-split strong{font-size:12px;overflow-wrap:anywhere}.referral-split span{font-size:9px}.referral-bottom{position:relative;z-index:1;flex-wrap:wrap;max-width:72%}.referral-bottom .compact-button{font-size:12px;padding:9px}
.gold-referral-badge{position:relative;isolation:isolate;width:64%;display:flex;flex-direction:column;align-items:center;gap:1px;padding:9px 22px 12px;margin:-2px 0 13px;border:3px solid #825016;border-radius:12px 18px 12px 17px;background:radial-gradient(ellipse at 50% 10%,#fffbd0,#ffe056 55%,#edaa26);box-shadow:inset 0 0 0 2px #fff7b4,0 4px 0 #684315,0 6px 10px #79502540;transform:rotate(-1deg)}
.gold-referral-badge span{font-size:12px;color:#654019;text-align:center;line-height:1.25}.gold-referral-badge strong{font-size:clamp(46px,4.5vw,70px);line-height:1.05;color:#ffed67;-webkit-text-stroke:3px #61330f;paint-order:stroke fill;text-shadow:0 4px #87430c,1px -2px #fff;font-weight:1000;letter-spacing:-3px}
.gold-referral-badge::before,.gold-referral-badge::after{content:'❧';position:absolute;font-size:70px;color:#468f22;line-height:1;text-shadow:1px 2px #214913,-1px -1px #b4da57;top:14px}.gold-referral-badge::before{left:-25px;transform:rotate(55deg)}.gold-referral-badge::after{right:-24px;transform:rotate(-125deg)}
.wallet-progress{padding:12px;background:#eaf0d4;border-radius:10px;overflow-wrap:anywhere}.wallet-progress:empty{display:none}
.music-control{position:fixed;right:15px;bottom:14px;z-index:8;border:2px solid #a87438;border-radius:22px;background:#fff3d8;color:#633d22;box-shadow:0 3px 12px #46331e35;padding:10px 16px;font-size:12px;font-weight:800;min-height:42px}.music-control[aria-pressed=true]{background:#cdebb5;color:#26572c}
/* Three crates across. Empty slots stay visible until an actual listing arrives. */
.market-stage{position:relative;isolation:isolate;min-height:800px;overflow:hidden;border:5px solid #ab7039;border-radius:20px;background:#f9e7c4;box-shadow:0 7px 20px #38231844}
.market-stage-paint{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto!important;z-index:-1}.market-stage-paint>img{object-fit:fill}
.market-stage-content{width:71.5%;padding:0 8px 22px}.market-stage .painted-heading{margin:0 -5px 0}.market-stage .market-shell{border-width:4px;border-radius:18px;padding:9px 9px 12px;box-shadow:inset 0 0 0 2px #fff0cd}
.market-stage .market-tabs{gap:3px;margin-bottom:5px}.market-stage .market-tabs a{font-size:14px;padding:10px 4px}.market-stage .basket-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.market-stage .market-toolbar{gap:8px;flex-wrap:wrap}.market-stage .basket-card{aspect-ratio:273/242}.market-stage .basket-body{padding:0;top:35%;bottom:7.1%}
.market-stage .basket-total{flex-wrap:nowrap;font-size:5.8cqw}.market-stage .basket-amount{font-size:13.5cqw}.market-stage .basket-price{font-size:5.5cqw;margin-left:0;overflow-wrap:anywhere}.basket-empty .empty-crate-label{position:absolute;left:10%;right:10%;top:47%;color:#9d7749;text-align:center;line-height:1.5}.empty-crate-label strong{display:block;font-size:6cqw}.empty-crate-label span{font-size:5cqw;display:block;margin-top:10px;color:#af9168}
.market-stage-content .small-note,.market-stage-content>p{background:#fff2d8}.market-stage .listing-row{grid-template-columns:35% 1fr auto;gap:8px}.market-stage .listing-identity>.illustrated-avatar{width:60px;height:60px}.market-stage .live-stat strong{font-size:20px}
/* Garden reference painting, with live values replacing the example figures. */
.garden-reference,.ranking-reference{padding:7px}.garden-live-board,.ranking-live-board{overflow:hidden;border-radius:15px}.garden-grand-total{background:#8e542b;color:#fff8e6;text-shadow:2px 3px #42200e;font-size:4.6cqw;letter-spacing:-1px;border-radius:7px}.garden-wood-value{background:#92552b;color:#fff6df;font-size:1.5cqw;border-radius:5px}
.garden-growth-line.live-stat{padding:3px 6px;border:0;border-radius:0;background:#fbe8cc;display:flex;flex-direction:column;justify-content:center}.garden-growth-line small{font-size:1.15cqw;margin:0 0 3px;color:#291e16}.garden-growth-line strong{font-size:1.7cqw;line-height:1.1;color:#075d36}.garden-growth-history{display:flex;flex-direction:column;background:#fbe9d0;padding:0 5px;justify-content:space-around;font-size:1.3cqw;color:#312319}.garden-growth-history>div{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid #e5c6a0;padding:5px}.garden-growth-history strong{color:#095d38}.garden-explainer{margin:0;padding:3px;background:#fae9d0;color:#37444a;font-size:1.25cqw;line-height:1.4}
/* The illustrated leaderboard keeps its rank sidebar and gold/silver/bronze rows. */
.ranking-live-tabs{display:grid;grid-template-columns:1.2fr 1fr 1fr 1.2fr;gap:4px}.ranking-live-tabs .ranking-tab{font-size:1.35cqw}.ranking-live-tabs [aria-pressed=true]{background:linear-gradient(#b2e991,#7dce70);border:1px solid #65b653;color:#234722}.live-reference-table{background:#fff0d9;overflow:auto}.live-reference-table .live-ranking-table{font-size:1.2cqw;table-layout:fixed;min-height:100%;min-width:0}.live-reference-table th{font-size:1.15cqw;padding:1cqw .6cqw}.live-reference-table th:first-child{width:9%}.live-reference-table th:nth-child(2){width:34%}.live-reference-table th:nth-child(3){width:24%}.live-reference-table th:nth-child(4){width:20%}.live-reference-table th:nth-child(5){width:13%}.live-reference-table td{padding:.9cqw .6cqw;white-space:normal;overflow-wrap:anywhere}.live-reference-table .illustrated-avatar{width:3.7cqw;height:3.7cqw}.live-reference-table td:nth-child(2){display:table-cell}.live-reference-table td:nth-child(2) .illustrated-avatar{float:left;margin-right:7px}.live-reference-table .ranking-value{color:#08683a;font-weight:800;font-size:1.65cqw}.live-reference-table tr:nth-child(2){background:#e0e4e3}.live-reference-table tr:nth-child(3){background:#f4d3ad}.live-reference-table .rank-number{text-align:center;font-weight:bold;color:#a86513;font-size:1.8cqw}.empty-ranking td{text-align:center;background:#fff2db!important}.empty-ranking h2{font-size:2cqw;color:#6b4326}.empty-ranking p{font-size:1.25cqw}.empty-ranking .icon{width:7cqw;height:7cqw}.ranking-live-board .live-pagination{margin:0;background:#fbe9d0;font-size:1.35cqw}.ranking-live-board .live-pagination button{background:#e8c298;color:#654024;border-color:#dfb683;font-size:1.3cqw;padding:8px 22px}
.personal-rank{display:flex;align-items:center;gap:10px;background:#fff3df;padding:5px}.personal-rank>.illustrated-avatar{width:7cqw;height:7cqw}.personal-rank div{display:grid;gap:5px;min-width:0}.personal-rank strong{font-size:1.8cqw}.personal-rank b{font-size:1.65cqw;color:#166c3a;overflow-wrap:anywhere}.personal-rank small{font-size:1.1cqw;color:#3d4b51}.rank-filters{display:grid;grid-template-rows:repeat(3,1fr) auto;gap:4px;background:#fff0d8}.rank-filters button{font-size:1.45cqw;padding:4px;border:1px solid #deb582;border-radius:10px;background:#ffefd6;color:#5a371f}.rank-filters button[aria-pressed=true]{background:linear-gradient(#b8e8a0,#8ed089);border-color:#8ac57b}.rank-filters small{font-size:.8cqw;padding:3px}
@media(min-width:1051px){body[data-page^=marketplace] #page-content{width:min(1120px,calc(100% - 55px));transform:none}.market-stage{min-height:calc(min(1120px,100vw - 55px)*.85)}body[data-page=farm] #page-content{transform:translateX(-3vw)}body[data-page=garden] #page-content,body[data-page=leaderboard] #page-content{width:min(1200px,calc(100% - 50px))}.garden-reference .board-paint,.ranking-reference .board-paint{width:100%}}
@media(max-width:1050px){.market-stage{min-height:73vw}.market-stage-content{width:73%}.market-stage .market-tabs a{font-size:12px}.market-stage .native-select{font-size:12px}.garden-world .world-base{background-size:cover;background-position:55% center}}
@media(max-width:600px){.market-stage{min-height:0;padding-top:160px;background:#f5ddb6}.market-stage-paint{height:270px;background:#f1d59f;overflow:hidden}.market-stage-paint>img{width:300%!important;height:auto!important;left:-195%!important;top:-115px!important}.market-stage-content{width:100%;padding:0 4px 8px}.market-stage .painted-heading{display:none}.market-stage .market-shell{position:relative}.market-stage .basket-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.market-stage .market-tabs a{font-size:11px}.market-stage .basket-total .compact-button{font-size:6.4cqw}.referral-paper{padding:13px 10px;min-height:260px}.gold-referral-badge{width:67%;padding:8px 17px}.gold-referral-badge strong{font-size:51px}.gold-referral-badge span{font-size:10px}.referral-paper .referral-note{max-width:66%;font-size:11px}.referral-paper .referral-friends{width:38%;bottom:12px}.referral-paper .referral-split{margin-right:28%}.referral-split strong{font-size:11px}.referral-split span{font-size:9px}.referral-bottom{max-width:75%;gap:8px}.music-control{bottom:44px;right:8px;font-size:11px;padding:7px 10px}.garden-reference,.ranking-reference{padding:4px;border-width:4px}.garden-live-board .board-paint{min-width:0}.garden-live-board{min-height:0}.garden-grand-total{font-size:4.6cqw}.garden-wood-value{font-size:1.5cqw}.garden-growth-line.live-stat{padding:0 2px}.garden-growth-line small{font-size:1.1cqw;margin-bottom:1px}.garden-growth-line strong{font-size:1.65cqw}.garden-growth-history{font-size:1.3cqw;padding:0}.garden-growth-history>div{padding:1px}.garden-explainer{font-size:1.25cqw;padding:0}.garden-live-board .art-button{min-height:0;border-radius:5px}.garden-reference::after,.ranking-reference::after{display:none}.ranking-live-board>.board-paint{display:none}.ranking-live-board{padding:8px;background:#fff0d9;padding-top:170px;background-image:url('assets/leaderboard-panda.png');background-size:560px auto;background-position:100% -62px;background-repeat:no-repeat}.ranking-live-board [style*="position: absolute"]{position:relative!important;left:auto!important;top:auto!important;width:100%!important;height:auto!important}.ranking-live-tabs{grid-template-columns:1fr 1fr;gap:5px;margin-bottom:8px}.ranking-live-tabs .ranking-tab{font-size:12px;min-height:42px;border-radius:9px}.live-reference-table{min-height:260px}.live-reference-table .live-ranking-table{font-size:12px;min-width:570px}.live-reference-table th{font-size:11px;padding:9px}.live-reference-table td{padding:8px}.live-reference-table .illustrated-avatar{width:35px;height:35px}.live-reference-table .ranking-value{font-size:15px}.live-reference-table .rank-number{font-size:16px}.empty-ranking h2{font-size:19px}.empty-ranking p{font-size:12px}.empty-ranking .icon{width:45px;height:45px}.ranking-live-board .live-pagination{font-size:12px;padding:10px 0}.ranking-live-board .live-pagination button{font-size:12px;padding:8px 12px}.personal-rank{margin:8px 0;border:3px solid #ad713b;border-radius:12px;padding:10px}.personal-rank>.illustrated-avatar{width:50px;height:50px}.personal-rank strong{font-size:18px}.personal-rank b{font-size:17px}.personal-rank small{font-size:12px}.rank-filters{grid-template-columns:repeat(3,1fr);grid-template-rows:auto auto;gap:5px}.rank-filters button{font-size:12px;min-height:42px}.rank-filters small{font-size:11px;grid-column:1/-1}.garden-reference{overflow:auto}.live-credit{font-size:11px}.farm-journal.leafy-journal{border-width:6px}.leafy-journal .journal-tabs button{font-size:13px}}
@media(prefers-reduced-motion:reduce){.garden-world .breeze-leaf{animation:none}}
/* Final alignment and painted leaf details. */
.leafy-journal::before,.leafy-journal::after,.gold-referral-badge::before,.gold-referral-badge::after{display:none}
.gold-referral-badge strong{font-family:'Arial Black','Trebuchet MS',sans-serif;font-weight:900;-webkit-text-stroke:4px #643209;paint-order:stroke fill;text-shadow:0 4px 0 #85460d;letter-spacing:-3px}
.referral-vine{position:absolute;top:7px;bottom:2px;width:35px;pointer-events:none}.referral-vine.left{left:-19px;transform:rotate(-15deg)}.referral-vine.right{right:-20px;transform:rotate(162deg)}.referral-vine .icon{position:absolute;width:40px;height:40px;left:0;filter:drop-shadow(0 2px 1px #31501d70)}.referral-vine .icon:nth-child(2){top:26px;transform:rotate(18deg)}.referral-vine .icon:nth-child(3){top:52px;transform:rotate(-20deg)}
.referral-paper .referral-invite-sign{position:absolute;width:31%;right:1%;top:15px;transform:rotate(4deg);filter:drop-shadow(0 2px 1px #60331a33)}
.referral-paper .referral-friends{width:39%}.referral-split strong{font-weight:800}.gold-referral-badge{background:radial-gradient(ellipse at 50% 5%,#fff3a3,#ffdf49 55%,#f4b72d)}
.market-stage-paint{height:auto;aspect-ratio:1208/1027!important;bottom:auto}.market-stage{background:linear-gradient(90deg,#f9e7c4 71.5%,#d5bc79 71.5%)}
.mobile-garden-details{display:none}.garden-grand-total,.garden-wood-value{background:repeating-linear-gradient(2deg,#935a30 0 7px,#92562d 8px 9px,#8a5029 10px 12px);box-shadow:inset 0 2px 6px #63321820}
@media(min-width:1051px){body[data-page=farm] #page-content{transform:translateX(-6vw)}}
@media(max-width:600px){.mobile-garden-details{display:block;padding:10px}.mobile-garden-details h2{font-size:22px;color:#603b1f;margin:7px 0}.mobile-garden-details p{font-size:12px;line-height:1.5}.mobile-garden-details .action{width:100%;min-height:44px;margin-top:8px}.garden-live-board .art-button{visibility:hidden}.gold-referral-badge strong{font-size:54px}.referral-vine .icon{width:32px;height:32px}.referral-vine .icon:nth-child(2){top:23px}.referral-vine .icon:nth-child(3){top:45px}.referral-vine.right{right:-23px}.market-stage-paint{height:270px;aspect-ratio:auto!important}.referral-paper .referral-invite-sign{width:29%}}
.mobile-rank-heading{display:none}
@media(max-width:600px){.scenic-frame>.ranking-live-board{padding-top:0;background:#fff0d9}.mobile-rank-heading{display:flex;align-items:center;gap:5px;height:130px;margin:0 -8px 7px;overflow:hidden;background:#b9d381}.mobile-rank-title{width:63%;flex:none}.mobile-rank-lady{width:40%;flex:none}.live-reference-table .live-ranking-table:has(.empty-ranking){min-width:0}.live-reference-table:has(.empty-ranking){min-height:235px}.empty-ranking td{height:180px}.empty-ranking p{padding:0 12px}.empty-ranking h2{font-size:17px}.live-reference-table .live-ranking-table:has(.empty-ranking) th{font-size:9px;padding:8px 4px}}
.mobile-market-heading{display:none}
@media(max-width:600px){.market-stage{padding-top:0}.market-stage-paint{display:none}.mobile-market-heading{display:flex;align-items:center;gap:0;height:170px;overflow:hidden;background:linear-gradient(120deg,#8b582b,#b18c49)}.mobile-market-title{width:65%;flex:none;margin-left:5px;filter:drop-shadow(0 3px 2px #33200b60)}.mobile-market-lady{width:40%;flex:none;margin-left:-2%}}
