/* Four-page layout study: overview workspace, not a game scene or icon dashboard. */
.ui-home{max-width:760px;padding-top:max(20px,env(safe-area-inset-top));background:linear-gradient(180deg,var(--ui-home-top-blend,#061c1a12 0),#061c1a00 250px,#f6f3ee99 375px,var(--ui-bg) 530px),url('/static/images/ui/auth-airport-night-v1.webp') center -40px/100% auto no-repeat;background-color:#061c1a}
.ui-home .ui-brand-header{margin-bottom:8px}
.ui-home .ui-brand img.ui-brand-mark{width:24px;height:26px}
.ui-home .ui-brand-mark::after{background:#d7dfd9}
.ui-home .ui-brand img.ui-brand-name{width:74px;height:18px}
.ui-home .ui-brand{flex:1;gap:7px}.ui-home .ui-brand>span:last-child{min-width:0;padding-top:4px}
.ui-home .ui-brand-caption{font-size:10px;line-height:1.25;margin-top:1px;color:#d7dfd9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ui-home-logout{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0;border:0;background:none;color:#ef6b5c;font:inherit;font-size:12px;white-space:nowrap;cursor:pointer}.ui-home-logout svg{width:19px;height:19px}
.ui-home-logout-status{margin:0 0 12px;font-size:12px;color:#f6b1a6}.ui-home-logout-status:empty{display:none}
.ui-home-bell,.ui-home-support{position:relative;border:0;background:none;color:#fffdf9}
.ui-home-avatar{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#e9e4dc;overflow:hidden}
.ui-home-avatar>svg{width:24px;height:24px;color:#8c8176}
.ui-home-overview{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}
.ui-home-overview p{font-size:12px;color:var(--ui-muted);margin:0 0 5px}
.ui-home-overview h1{font-size:32px;letter-spacing:-1.2px;margin:0}
.ui-home-ledger-link{display:grid;place-items:center;flex:0 0 44px;height:44px;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-paper)}
.ui-home-workspace{margin-bottom:12px}
.ui-home-service-note{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:8px;padding:12px;border:1px solid var(--ui-line);border-radius:16px;background:var(--ui-paper);box-shadow:0 3px 10px #43372808}
.ui-home-service-note>div{display:grid;grid-template-columns:28px minmax(0,1fr);align-content:start;gap:0 6px;min-width:0}.ui-home-service-note>div>p{margin:0;min-width:0}.ui-home-service-note>div>p>span{font-size:10px}
.ui-home-service-note svg{flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ui-home-service-note>div>svg{box-sizing:content-box;padding:5px;border-radius:9px;background:#e6ebd9;color:#515b45}
.ui-home-service-note span,.ui-home-service-note small{display:block;font-size:11px;line-height:1.4;color:var(--ui-muted)}
.ui-home-service-note small{grid-column:1/-1;max-width:100%}
.ui-home-service-note strong{display:block;font-size:clamp(14px,4.1vw,18px);line-height:1.3;color:#173b3a;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.ui-home-service-note>p{grid-column:1/-1;display:flex;align-items:flex-start;gap:9px;margin:0;padding-top:10px;border-top:1px solid var(--ui-line)}
.ui-home-wallet{position:relative;padding:16px 22px;border-radius:22px;color:#fffdf8;background:linear-gradient(130deg,#34312e99,#58534d99);box-shadow:0 9px 20px #39312612;min-width:0}
.ui-home-wallet-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:#ded8cf}
.ui-home-wallet-heading>a{display:inline-flex;align-items:center;gap:4px;flex-shrink:0;min-height:44px;margin:-12px 0;padding:12px 0;color:#fffdf8}
.ui-home-primary-balance>strong{display:block;font-size:clamp(29px,8.4vw,41px);line-height:1.2;letter-spacing:-1.2px;margin:4px 0 10px;font-weight:600;font-variant-numeric:tabular-nums;word-break:break-word}
.ui-home-secondary-balance{display:flex;align-items:baseline;justify-content:space-between;gap:12px;border-top:1px solid #ffffff24;padding-top:9px;font-size:12px;color:#ded8cf}
.ui-home-secondary-balance strong{color:#fffdf8;font-size:15px;letter-spacing:-.2px;font-weight:500;font-variant-numeric:tabular-nums}
.ui-home-wallet-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.ui-home-wallet-actions .btn{min-height:46px;font-size:14px;padding:10px 7px;gap:7px;border-radius:11px;box-shadow:none;overflow-wrap:normal;word-break:normal}
.ui-home-wallet-actions .farm-wallet-add{background:#fffdf9;color:#35312d;border:1px solid #fffdf9}
.ui-home-wallet-actions .btn-secondary{background:transparent;color:#fffdf9;border:1px solid #a39c93}
.ui-home-wallet-actions svg{width:19px;height:19px;flex-shrink:0}
.ui-home-wallet-status{display:flex;align-items:center;gap:10px;font-size:12px;overflow-wrap:anywhere}
.ui-home-wallet-status .btn{min-height:44px;color:inherit;background:transparent;border:1px solid #a39c93;margin-top:8px}
.ui-home-wallet-status [hidden]{display:none}
.ui-home-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0 6px}
.ui-home .home-share{margin-top:8px}
.ui-home .ui-home-personal-links{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:0}
.ui-home-shortcuts>a,.ui-home-shortcuts>button{position:relative;display:flex;align-items:center;justify-content:flex-start;gap:11px;min-height:50px;padding:6px 12px;border:1px solid var(--ui-line);border-radius:13px;background:var(--ui-paper);color:var(--ui-ink);font-size:12px;text-align:left;line-height:1.4;min-width:0}
.ui-home-shortcuts>a>span,.ui-home-shortcuts>button>span{display:grid;place-items:center;flex:0 0 29px;height:29px;color:#59534c}
.ui-home-shortcuts svg{width:23px;height:23px}
.ui-home-shortcuts [data-home-module-status]{font-size:10px;color:var(--ui-muted);height:auto;flex:1}
.ui-home .ui-section-head{margin:10px 0 8px}
.ui-home .ui-section-head h2{font-size:18px;letter-spacing:-.4px}
.ui-home .ui-section-head>a{display:inline-flex;align-items:center;justify-content:flex-end;gap:4px;min-height:44px;font-size:12px;color:var(--ui-muted)}
.ui-home .ui-section-head>a svg{width:16px;height:16px}
.ui-home-order{position:relative;padding:18px 18px 8px;border-radius:18px;box-shadow:none}
.ui-home-order-heading{display:flex;align-items:center;gap:10px;margin-bottom:17px}
.ui-home-order-heading>div{flex:1;min-width:0}
.ui-home-order-heading h3{font-size:17px;letter-spacing:-.3px;margin:0 0 4px}
.ui-home-order-heading p{font-size:12px;margin:0}
.ui-home-order-heading>span:last-child{font-size:25px;font-weight:500;letter-spacing:-1px}
.ui-home-next{font-size:11px;color:var(--ui-muted);margin:10px 0 14px}
.ui-home-next time{margin-left:7px;font-variant-numeric:tabular-nums}
.ui-home-order-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid var(--ui-line);padding-top:13px}
.ui-home-order-footer>div{min-width:0}
.ui-home-order-footer span{display:block;color:var(--ui-muted);font-size:11px;margin-bottom:2px}
.ui-home-order-footer strong{display:block;font-size:24px;letter-spacing:-.7px;font-weight:600;font-variant-numeric:tabular-nums}
.ui-home-order-footer .btn{min-width:102px;min-height:46px;border-radius:11px}
.ui-home-order-detail{display:inline-flex;align-items:center;min-height:44px;font-size:11px;color:var(--ui-muted)}
#ui-home-refresh{float:right;min-height:44px;padding:7px 0 7px 14px;font-size:11px;box-shadow:none;margin:0}
#ui-home-feedback{clear:both;font-size:12px;margin-top:10px;padding:12px;min-height:0}
#ui-home-feedback a{display:inline-flex;align-items:center;min-height:44px;margin-left:8px;text-decoration:underline}
.ui-home-order:after{content:"";display:table;clear:both}
.ui-home-product{display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 0;border:0;border-bottom:1px solid var(--ui-line);border-radius:0;background:transparent;box-shadow:none;margin:0}
.ui-home-product>img,.ui-home-product-placeholder{width:54px;height:54px;object-fit:cover;border-radius:12px;background:#eae4dc;flex-shrink:0}
.ui-home-product-placeholder{display:grid;place-items:center}
.ui-home-product-placeholder svg{width:25px;height:25px}
.ui-home-product>div{min-width:0}
.ui-home-product h3{font-size:14px;margin:0 0 5px;font-weight:600}
.ui-home-product p{font-size:13px;margin:0;font-variant-numeric:tabular-nums}
.ui-home-product>span:last-child{font-size:11px;display:grid;align-items:center;min-height:44px;color:var(--ui-muted)}
.ui-home-more{display:grid;grid-template-columns:1fr 1fr;gap:0 16px;margin:24px 0 0}
.ui-home-more a{display:flex;align-items:center;justify-content:space-between;min-height:50px;padding:12px 0;font-size:12px;border-bottom:1px solid var(--ui-line);color:var(--ui-muted)}
.ui-home-carousel{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;margin:23px 0 5px}
.ui-home-carousel>img,.ui-home-carousel>a{width:100%;flex:0 0 100%;scroll-snap-align:start;border-radius:12px;overflow:hidden}
.ui-home-carousel img{aspect-ratio:12/5;object-fit:cover;max-height:210px}
.ui-home-bell .gift-badge{position:absolute;top:0;right:0;min-width:15px;line-height:15px;padding:0 3px;background:#9d4440;color:#fff;border-radius:10px;font-size:9px}
.ui-home-bell #gift-launcher-status{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.ui-wallet-notice-slot{min-height:50px;margin-top:8px;border-top:1px solid #ffffff24;padding-top:5px}.ui-wallet-links{display:block}.ui-wallet-footer{display:flex;justify-content:space-between;align-items:center;gap:6px;min-width:0;min-height:44px;font-size:11px;color:#e7e0d7}.ui-wallet-footer>span:first-child{min-width:0;overflow-wrap:anywhere}.ui-wallet-footer>span:last-child{flex-shrink:0}.ui-wallet-footer .ui-wallet-footer-action{display:inline-flex;align-items:center;justify-content:center;max-width:60%;min-height:44px;padding:10px 14px;border-radius:10px;background:#fffdf9;color:#35312d;font-size:13px;font-weight:600;line-height:1.35;text-align:center;overflow-wrap:anywhere}.ui-wallet-footer[data-payout-open]{flex-wrap:wrap}.ui-wallet-footer [data-home-module-status]{flex-basis:100%;font-size:10px}.ui-wallet-notice-slot>.home-wallet:has(>.gift-notice:not([hidden])){padding-top:5px;border-top:1px solid #ffffff24}.ui-home-wallet .gift-notice{position:relative;display:flex;gap:8px;min-height:44px;margin:0;padding:0;background:none;border:0;font-size:11px;color:#fffdf9;border-radius:0}.ui-home-wallet .gift-notice p{font-size:11px}.ui-home-wallet .gift-art{color:#e7e0d7;width:24px;height:24px;flex:0 0 24px}.ui-home-wallet #gift-dismiss{color:#e7e0d7}.ui-home-wallet .gift-notice-view{background:#fffdf9;color:#35312d}
.ui-wallet-footer-label{display:inline-flex;align-items:center;gap:6px}.ui-wallet-footer-label svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ui-home-wallet .gift-notice[hidden]{display:none}
.ui-home-wallet #gift-dismiss{position:static;flex:0 0 44px;min-width:44px;min-height:44px;width:44px;height:44px;padding:3px}
.ui-home-wallet .gift-notice-copy{min-width:0;flex:1}
.ui-home-wallet .gift-notice-view{flex-shrink:0;min-height:44px}
.ui-home-page .footer-nav{bottom:10px;width:calc(100% - 24px);max-width:736px;border:1px solid var(--ui-line);border-radius:18px;box-shadow:0 5px 24px #4337280b}
.ui-home-page .cs-float-btn{display:none}
@media(min-width:600px){.ui-home-shortcuts{grid-template-columns:repeat(4,minmax(0,1fr))}.ui-home-primary-balance>strong{font-size:38px}}
@media(max-width:359px){.ui-home-overview h1{font-size:29px}.ui-home-wallet{padding:16px 17px}.ui-home-wallet-actions .btn{font-size:13px;gap:5px}.ui-home-shortcuts>a,.ui-home-shortcuts>button{gap:7px;font-size:11px;padding:6px 10px}.ui-home-shortcuts>a>span,.ui-home-shortcuts>button>span{flex-basis:25px}.ui-home-order-footer strong{font-size:22px}.ui-home-order-footer .btn{min-width:87px}.ui-home-product{gap:9px}}
/* Keep the notice controls in flow rather than overlapping its View action. */
.ui-home-wallet .gift-notice #gift-dismiss{position:static;right:auto;top:auto;flex:0 0 44px;min-width:44px;min-height:44px;width:44px;height:44px;color:#e7e0d7;padding:3px}
.ui-home-wallet .gift-notice #gift-notice-view{flex:0 0 auto;min-height:44px;background:#fffdf9;color:#35312d}

/* Homepage sharing and tasks have separate navigation and data lifecycles. */
.home-task-login{display:flex;justify-content:space-between;gap:14px;align-items:center;min-height:54px;padding:12px;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-paper);font-size:12px}
.ui-home-tasks{scroll-margin-top:18px}
.ui-home-tasks .ui-section-head{align-items:center;gap:12px}
.ui-home-tasks .home-task-tools{display:flex;align-items:center;gap:12px;flex-shrink:0}
.ui-home-tasks .home-tasks-refresh{display:none!important}
.ui-home-tasks .home-tasks-feedback{padding:0;font-size:12px}
.ui-home-tasks #home-tasks-list:empty[aria-busy=true]{min-height:120px}
.ui-home-tasks .home-task-card{position:relative;overflow:hidden;padding:16px;margin-bottom:12px;border-radius:16px;background:radial-gradient(ellipse at top right,#fff0cf99,transparent 65%),radial-gradient(ellipse 120% 75% at -30% 110%,#ede8e155 55%,transparent 56%),var(--ui-paper)}
.ui-home-tasks .home-task-card:before{content:'';position:absolute;top:0;right:0;width:190px;height:88px;background:repeating-radial-gradient(ellipse at 100% 0,transparent 0 24px,#d9bd8c40 25px 26px,transparent 27px 48px);pointer-events:none}
.ui-home-tasks .home-task-card>*{position:relative}
.ui-home-tasks .home-task-heading h3{font-size:15px;line-height:1.4}
.ui-home-tasks .home-task-description{margin:6px 0 12px;font-size:12px}
.ui-home-tasks .home-task-progress-row{justify-content:space-between;align-items:baseline;flex-wrap:nowrap;gap:12px;color:var(--ui-muted)}
.ui-home-tasks .home-task-progress-text{min-width:0}.ui-home-tasks .home-task-values{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:4px 8px;min-width:0;text-align:right;color:var(--ui-ink)}
.ui-home-tasks .home-task-count{font-weight:600}.ui-home-tasks .home-task-values .home-task-percent:before{content:'·';margin-right:6px}
.ui-home-tasks .home-task-meter{margin-top:8px}.ui-home-tasks .home-task-progress{height:5px}
.ui-home-tasks .home-task-footer{grid-template-columns:minmax(0,1fr) 100px;gap:12px;margin-top:14px;padding-top:12px;border-top:1px solid var(--ui-line)}
.ui-home-tasks .home-task-reward{display:grid;gap:3px;min-width:0;max-width:none;overflow-wrap:anywhere}.ui-home-tasks .home-task-reward small{font-size:11px;font-weight:400;color:var(--ui-muted)}
.ui-home-tasks .home-task-amount{font-size:clamp(16px,4.6vw,19px);line-height:1.3;font-weight:650}
.ui-home-tasks button:disabled{opacity:.55;cursor:default}
.ui-home-tasks .home-task-claim{width:100%;max-width:none;min-height:44px}
.ui-home-tasks .home-task-claim:focus-visible{outline:2px solid #9c8870;outline-offset:3px}

.ui-home-install{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:6px 12px;margin:10px 0 0;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-paper);color:var(--ui-ink);font:inherit;font-size:12px;line-height:1.4;text-align:left}
.ui-home-install>span{flex:1;min-width:0}.ui-home-install>svg{width:18px;height:18px;color:var(--ui-muted)}.ui-home-install .ui-install-action{flex:0 0 auto;width:94px;max-width:50%;min-height:36px;padding:10px 14px;border-radius:9px;background:var(--ui-accent);color:var(--ui-paper);font-weight:600;line-height:1.3;text-align:center}
.ui-home-install:active{background:var(--ui-soft)}
.ui-home-contact{border-color:transparent;border-bottom-color:#cfc7bd;border-radius:0;background:transparent}
.ui-home-contact .ui-contact-label{font-weight:600}
