.farm-fantasy-sheet{position:absolute;inset:0;z-index:74;display:flex;align-items:center;justify-content:center;padding:22px;background:#28243dd9;backdrop-filter:blur(5px)}.farm-fantasy-sheet[hidden]{display:none}
.farm-fantasy-panel{display:flex;flex-direction:column;gap:14px;width:min(1160px,100%);max-height:100%;min-height:0;padding:23px;border:1px solid #c4af87;border-radius:24px;color:#f5eddc;background:radial-gradient(ellipse at top left,#6651748c,transparent 65%),linear-gradient(135deg,#38314f,#292b43);box-shadow:0 25px 70px #18162a99;overflow:hidden}
.farm-fantasy-header{display:flex;align-items:center;gap:17px;flex:none}.farm-fantasy-emblem{width:78px;height:78px;flex:none}.farm-fantasy-emblem svg{width:100%;height:100%}.farm-fantasy-header>div{min-width:0;flex:1}.farm-fantasy-header h2{font:700 clamp(1.3rem,2.1vw,1.9rem)/1.25 Georgia,serif;margin:5px 0;color:#f3dfb3}.farm-fantasy-eyebrow{color:#c1afcf;font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;margin:0}
.farm-fantasy-close{flex:none;min-height:42px;padding:9px 13px;border:1px solid #a08dba;border-radius:10px;background:#514661;color:#f5ead4;font-size:.76rem;font-weight:700}
.farm-fantasy-summary{display:flex;align-items:center;gap:17px;padding:13px 16px;border:1px solid #786a8e;border-radius:14px;background:#211f3666;flex:none}.farm-fantasy-summary>div:first-child{flex:1;min-width:0}.farm-fantasy-summary strong{display:block;font:700 1.08rem Georgia,serif;color:#efddbc}.farm-fantasy-summary small{display:block;margin-top:5px;color:#c7bacf;font-size:.72rem;line-height:1.5}.farm-fantasy-wallet{flex:none;text-align:right}.farm-fantasy-wallet strong{color:#ebc98a;margin-top:5px}.farm-fantasy-backpack{min-height:42px;padding:9px 11px;border:1px solid #899f9e;border-radius:10px;background:#3f5758;color:#e9eee0;font-size:.73rem;font-weight:700}
.farm-fantasy-filters{display:grid;grid-template-columns:minmax(180px,1fr) 165px 105px;gap:9px;flex:none}.farm-fantasy-search,.farm-fantasy-category,.farm-fantasy-quantity{min-width:0;max-width:100%;min-height:41px;padding:8px 10px;border:1px solid #998aa9;border-radius:10px;background:#efe9f1;color:#5a5069;font:inherit;font-size:.77rem}.farm-fantasy-search::placeholder{color:#7a6e88}.farm-fantasy-locked-filter{grid-column:1/-1;margin:0;min-height:28px;display:flex;align-items:center;gap:8px;font-size:.72rem;color:#c6b7d2}.farm-fantasy-locked-filter input{width:17px;height:17px;min-width:17px;min-height:17px;flex:none;margin:0;padding:0;accent-color:#d0b186}.farm-fantasy-status{font-size:.75rem;line-height:1.45;color:#ddd0e4;flex:none;margin:0;min-height:1.4em}
.farm-fantasy-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:2px 5px 8px 1px;scrollbar-color:#9c89b3 #353047}.farm-fantasy-tier{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:19px 0 12px;border-bottom:1px solid #6c627c;padding-bottom:10px}.farm-fantasy-tier:first-child{margin-top:0}.farm-fantasy-tier h3{margin:0;font:700 1.15rem Georgia,serif;color:#eccea2}.farm-fantasy-tier span{font-size:.67rem;color:#c0aecf;text-align:right}.farm-fantasy-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.farm-fantasy-product{display:flex;flex-direction:column;min-width:0;gap:8px;padding:15px;border:1px solid #cfbed7;border-radius:16px;background:radial-gradient(ellipse at top,#e9e1f3,transparent 65%),linear-gradient(150deg,#faf5e8,#e7e8e7);color:#56516b;box-shadow:0 5px 12px #18152630}.farm-fantasy-product.is-locked{background:linear-gradient(145deg,#e4deea,#d5d6df);border-color:#aaa0ba}.farm-fantasy-visual{display:grid;place-items:center;height:105px;border-radius:12px;background:radial-gradient(ellipse,#e4d6ed80,transparent 70%)}.farm-fantasy-product-art{display:block;width:104px;height:104px;filter:drop-shadow(0 5px 4px #71628425)}.farm-fantasy-product-art svg{width:100%;height:100%}.farm-fantasy-product-kind{font-size:.6rem;letter-spacing:.06em;text-transform:uppercase;color:#7a7386}.farm-fantasy-product h4{font:700 1.08rem/1.3 Georgia,serif;color:#554565;margin:0;overflow-wrap:anywhere}.farm-fantasy-description{font-size:.73rem;line-height:1.5;color:#716980;min-height:3em;margin:0}.farm-fantasy-growth{font-size:.7rem;line-height:1.45;color:#776a54;margin:0}.farm-fantasy-value{font-size:.64rem;line-height:1.45;color:#7e7487}.farm-fantasy-stock{font-size:.69rem;color:#60797a}.farm-fantasy-actions{display:flex;gap:7px;margin-top:auto;padding-top:5px}.farm-fantasy-buy,.farm-fantasy-use{min-height:41px;padding:9px 7px;border-radius:10px;font-family:inherit;font-size:.73rem;font-weight:700;line-height:1.35;white-space:normal}.farm-fantasy-buy{flex:1;border:1px solid #807090;background:linear-gradient(120deg,#9a7dad,#77668e);color:#fff6e4}.farm-fantasy-use{border:1px solid #bbc9bd;background:#e7eee0;color:#647864}.farm-expanded .farm-fantasy-buy:disabled,.farm-expanded .farm-fantasy-use:disabled{opacity:1;background:#dddbe0;color:#77717f;border-color:#b8b1bf}.farm-fantasy-footnote{font-size:.71rem;line-height:1.55;color:#cbbdd6;margin:19px 0 3px}.farm-fantasy-empty{color:#ddcee3;padding:18px;font-size:.82rem}.farm-fantasy-promo{padding:14px;border:1px solid #baa7c8;border-radius:14px;background:linear-gradient(140deg,#eee5f1,#edeada)}.farm-fantasy-promo-art{display:block;width:92px;height:92px;margin:0 auto}.farm-fantasy-promo-art svg{width:100%;height:100%}.farm-expanded .farm-fantasy-promo h4{font:700 1.1rem Georgia,serif;color:#76618b;margin:8px 0}.farm-expanded .farm-fantasy-open{width:100%;min-height:42px;margin-top:8px;background:#8f799e;border-color:#7d688b;color:#fff5df}
.farm-level-celebration{position:absolute;inset:0;z-index:100;pointer-events:none;overflow:hidden;contain:paint}.farm-level-confetti{position:absolute;inset:0;overflow:hidden}.farm-confetti-piece{position:absolute;top:-25px;left:var(--confetti-x);display:block;width:8px;height:15px;border-radius:2px;opacity:0;animation:farm-confetti-fall 3.5s var(--confetti-delay) cubic-bezier(.18,.58,.63,1) forwards}.farm-confetti-piece.is-star{width:12px;height:12px;clip-path:polygon(50% 0,61% 35%,100% 50%,61% 65%,50% 100%,39% 65%,0 50%,39% 35%)}
.farm-level-up-banner{position:absolute;top:20%;left:50%;width:min(420px,calc(100% - 26px));padding:25px 23px 20px;border:2px solid #d9bd82;border-radius:24px;text-align:center;color:#fbefd5;background:radial-gradient(ellipse at top,#746382,#413855 75%);box-shadow:0 14px 42px #241b4166,0 0 35px #e4c78245;animation:farm-level-banner 4.4s ease-out forwards}.farm-level-up-emblem{display:grid;place-items:center;width:72px;height:72px;margin:-3px auto 13px;border:4px double #d9b977;border-radius:50%;background:linear-gradient(140deg,#f3dcaa,#c3a172);color:#685844;font:700 2.15rem Georgia,serif;box-shadow:0 0 22px #ead29480}.farm-level-up-eyebrow{color:#d8c5e6;font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;margin:0 0 8px}.farm-level-up-banner>strong{display:block;font:700 2rem Georgia,serif;color:#f5d7a1}.farm-level-up-title{display:block;font:700 1.1rem Georgia,serif;margin:8px 0;color:#e7dbea}.farm-level-up-banner>p:last-child{font-size:.78rem;line-height:1.5;margin:10px 0 0;color:#e3d3e7}
@keyframes farm-confetti-fall{0%{opacity:0;transform:translate(0,-20px) rotate(0deg)}8%{opacity:1}75%{opacity:1}100%{opacity:0;transform:translate(var(--confetti-drift),100vh) rotate(var(--confetti-turn))}}
@keyframes farm-level-banner{0%{opacity:0;transform:translate(-50%,20px) scale(.82)}10%,83%{opacity:1;transform:translate(-50%,0) scale(1)}100%{opacity:0;transform:translate(-50%,-20px) scale(1.02)}}
@media(max-width:1000px){.farm-fantasy-sheet{padding:12px}.farm-fantasy-panel{padding:17px;gap:11px}.farm-fantasy-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.farm-fantasy-emblem{width:65px;height:65px}}
@media(max-width:620px){.farm-fantasy-sheet{padding:5px}.farm-fantasy-panel{height:100%;border-radius:14px;padding:12px 10px;gap:9px}.farm-fantasy-header{gap:8px}.farm-fantasy-header h2{font-size:1.12rem}.farm-fantasy-emblem{width:43px;height:43px}.farm-fantasy-eyebrow{font-size:.51rem;letter-spacing:.02em}.farm-fantasy-close{font-size:.67rem;padding:7px 8px;min-height:40px}.farm-fantasy-summary{flex-wrap:wrap;padding:10px;gap:8px}.farm-fantasy-summary strong{font-size:.96rem}.farm-fantasy-summary small{font-size:.64rem}.farm-fantasy-summary>div:first-child{flex:1 1 65%}.farm-fantasy-backpack{width:100%;min-height:37px;font-size:.69rem}.farm-fantasy-filters{grid-template-columns:minmax(0,1fr) 96px;gap:6px}.farm-fantasy-search{grid-column:1/-1}.farm-fantasy-search,.farm-fantasy-category,.farm-fantasy-quantity{font-size:.72rem;min-height:38px;padding:7px}.farm-fantasy-status{font-size:.67rem}.farm-fantasy-locked-filter{font-size:.67rem}.farm-fantasy-grid{grid-template-columns:1fr;gap:10px}.farm-fantasy-tier h3{font-size:1rem}.farm-fantasy-tier span{font-size:.6rem;max-width:130px}.farm-fantasy-product{padding:13px}.farm-fantasy-visual{height:93px}.farm-fantasy-product-art{width:94px;height:94px}.farm-fantasy-description{min-height:0}.farm-fantasy-actions{gap:8px}.farm-fantasy-buy,.farm-fantasy-use{min-height:42px;font-size:.74rem}.farm-level-up-banner{top:26%;padding:19px 15px 17px}.farm-level-up-emblem{width:57px;height:57px;font-size:1.8rem}.farm-level-up-banner>strong{font-size:1.7rem}.farm-level-up-title{font-size:1rem}.farm-level-up-banner>p:last-child{font-size:.72rem}}
@media(min-width:621px) and (max-height:700px){.farm-fantasy-panel{padding:14px;gap:8px}.farm-fantasy-emblem{width:50px;height:50px}.farm-fantasy-header h2{font-size:1.5rem}.farm-fantasy-summary{padding:9px 12px}.farm-fantasy-filters{gap:6px}.farm-fantasy-visual{height:88px}.farm-fantasy-product-art{width:87px;height:87px}.farm-level-up-banner{top:15%}}
@media(prefers-reduced-motion:reduce){.farm-level-confetti{display:none}.farm-level-up-banner{animation:none;transform:translateX(-50%)}.farm-fantasy-sheet button{transition:none}}

@media(max-width:620px){.farm-fantasy-close{width:38px;min-width:38px;padding:0;font-size:0}.farm-fantasy-close::after{content:"×";font-size:1.3rem}.farm-fantasy-header h2{font-size:1.1rem}.farm-fantasy-product{display:grid;grid-template-columns:78px minmax(0,1fr);gap:6px 10px}.farm-fantasy-visual{grid-column:1;grid-row:1 / span 3;height:90px;align-self:center}.farm-fantasy-product-art{width:78px;height:78px}.farm-fantasy-product-kind,.farm-fantasy-product h4,.farm-fantasy-description{grid-column:2}.farm-fantasy-product h4{font-size:1rem}.farm-fantasy-growth,.farm-fantasy-value,.farm-fantasy-stock,.farm-fantasy-actions{grid-column:1/-1}.farm-fantasy-actions{margin-top:0}}
