/* NextNFT orbital interface */
:root{color-scheme:dark;--gold:#60dfff;--text:#edf5ff;--muted:#9bb0cb;--line:#203859;--surface:#0a1323;--surface2:#102039}
body{background:#03070f;color:#edf5ff}
#app,#dialog,#toast,#web3-progress{--gold:#60dfff;--text:#edf5ff;--muted:#9bb0cb;--line:#203859;--surface:#0a1323;--surface2:#102039;font-size:16px;line-height:1.65}
#app{background:#03070f}
#app::before{background:radial-gradient(ellipse at 85% 10%,#123d7738,transparent 55%),linear-gradient(#1765bb09 1px,transparent 1px),linear-gradient(90deg,#1765bb09 1px,transparent 1px);background-size:auto,72px 72px,72px 72px;opacity:1}
#app>.topbar{max-width:1160px;height:82px;background:#03070fd9;border-bottom:1px solid #203859;padding:0 28px}
#app .logo{font-size:23px;letter-spacing:-.8px;gap:7px}#app .logo img{width:36px;height:36px}#app .logo span{color:#60dfff}
#app .shell{max-width:1000px;padding:36px 28px 48px}
#app .card,#app .balance-hero,#app .wallet-auth,#app .auth-form{background:linear-gradient(145deg,#0c182b,#080f1d);border:1px solid #203859;border-radius:20px;box-shadow:0 16px 48px #0003}
#app .btn.primary,#app .wallet-auth .btn.primary,#dialog .btn.primary{background:linear-gradient(110deg,#2572ff,#30c6f4);color:#fff;border:1px solid #3f9bff;box-shadow:0 6px 30px #238dff26}
#app .btn.primary:hover,#dialog .btn.primary:hover{background:linear-gradient(110deg,#438bff,#4ddfff);border-color:#8ceaff;color:#03101f}
#app .btn{font-size:16px;min-height:48px;border-radius:10px}#app .btn.sm{font-size:14px;min-height:40px}
#app .eyebrow{font-size:11px;letter-spacing:3px;color:#60dfff;font-weight:700}
#app .page-head .eyebrow{display:block}#app .page-head h1{color:#edf5ff;font-size:34px}
#app h2,#app .section-head h2,#app .card>h2{font-size:24px}#app h3{font-size:19px}
#app .home-intro{position:relative;overflow:hidden;min-height:340px;padding:42px;background:linear-gradient(90deg,#071020 20%,#071020dd 48%,#0710200a),url('/assets/nft/planet-6.png') right center/440px no-repeat}
#app .home-intro h1{font-size:52px;letter-spacing:-2px;margin:16px 0}#app .home-intro h2{font-size:25px}#app .home-intro p{max-width:470px;font-size:16px}#app .home-intro p:last-child{display:none}
#app .pool,#app .participation,#app .ticker,#app .wallet-main .list-row,#app .wallet-tiles .list-row,#app .tree-node,#app .switch-card{background:#0b182b;border-color:#203859}
#app .home-about{padding:32px}#app .home-about h3{color:#60dfff}
#app .auth-wrap{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:32px;align-items:center;max-width:1040px;margin:25px auto 55px;padding:36px;border:1px solid #203859;border-radius:24px;overflow:visible;background:linear-gradient(135deg,#0a172780,#050b1580)}
#app .auth-form{padding:30px;min-width:0}#app .auth-form h1{font-size:28px;margin:14px 0}
#app .auth-visual{position:relative;min-width:0;padding:8px 0}#app .auth-visual>.eyebrow{font-size:10px;letter-spacing:2px;line-height:1.8;overflow-wrap:anywhere}#app .auth-visual h2{font-size:clamp(32px,3.6vw,46px);letter-spacing:-1.6px;line-height:1.16;margin:20px 0 16px}#app .auth-visual h2 span{color:#60dfff}
#app .auth-visual p{font-size:15px;line-height:1.8;color:#9bb0cb;max-width:350px;margin:0 0 12px}#app .auth-planet{width:100%;display:block;aspect-ratio:1;object-fit:contain;mix-blend-mode:screen;margin:0}
#app .orbit-caption{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #203859;padding:18px 0 0;margin-top:12px;font-size:10px;letter-spacing:1.8px;color:#9bb0cb}
#app .form label,#app .help,#app .nft-requirement{font-size:14px}#app input:not([type=checkbox]),#app textarea,#app select.field{font-size:16px;background:#050c17;border-color:#2a4263;border-radius:9px}
#app input:focus,#app select:focus,#app textarea:focus{outline:2px solid #3fa7ff;outline-offset:2px}
#app .collection-title h1{font-size:40px;color:#edf5ff}#app .featured-nft{border-color:#378bc4;box-shadow:0 20px 65px #006eff22}#app .featured-nft>img{object-fit:contain}#app .nft-stage{height:425px}#app .nft-selection{max-width:440px}
#app .carousel-dots button.selected{box-shadow:0 0 0 4px #42bcff22}#app .side-art{max-width:300px}#app .side-art.previous{left:12%}#app .side-art.next{right:12%}
#app .wallet-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}#app .wallet-main .list-row,#app .wallet-tiles .list-row{font-size:17px}#app .wallet-main .list-row strong,#app .wallet-tiles .list-row strong{font-size:23px}#app .list-row strong{font-size:17px}#app .list-row small{font-size:13px}
#app .drawer{background:#07101f}#app .drawer nav a{font-size:16px}#app .drawer nav a.active{background:#143859;color:#79e5ff;border-color:#3c9cd8}
#app .bottom-navigation{background:#050b15f2;border-color:#203859}#app .bottom-navigation-inner{max-width:1000px}#app .bottom-navigation a[aria-current=page],#app .bottom-navigation button.active{color:#60dfff;background:#2088ff15}#app .bottom-navigation a,#app .bottom-navigation button{font-size:12px}
#app .account-chip{border-color:#254568}#app .notification-item.unread{background:#167cff0b}#app .ckit-purchase{background:#102943;border-color:#3875a7;color:#80dfff}
#app footer{flex-direction:row;justify-content:space-between;font-size:10px;letter-spacing:1px}#app .local-note{font-size:11px}#app .home-intro p,#app .page-head p,#app .preline,#app .wallet-auth-content>.muted{font-size:16px}
@media(max-width:700px){#app>.topbar{height:70px;padding:0 18px}#app .shell{padding:24px 18px 36px}#app .auth-wrap{display:flex;flex-direction:column;gap:20px;margin:0 auto 24px;max-width:480px}#app .auth-visual{width:100%;text-align:center}#app .auth-visual h2{font-size:34px;margin:12px 0}#app .auth-visual p{margin:8px auto}#app .auth-planet{height:220px;margin:-6px auto -10px}#app .orbit-caption{display:none}#app .auth-form{width:100%;padding:24px}#app .home-intro{min-height:330px;padding:28px;background-size:auto,350px;background-position:center,right -110px center}#app .home-intro h1{font-size:43px}#app .home-intro p{max-width:270px}#app .home-intro h2{font-size:23px}#app .nft-stage{height:360px}#app .side-art.previous{left:0}#app .side-art.next{right:0}#app footer{flex-direction:column}#app .logo{font-size:19px}#app .logo img{width:30px;height:30px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media(max-width:700px){#app .home-intro{background-image:linear-gradient(90deg,#071020f2,#071020aa),url('/assets/nft/planet-6.png')}#app .home-intro p{color:#bdcde3}}
#app .pill,#app .notice{border-color:#285377;background:#13304755;color:#9ddfff}
/* Stack before the two columns become too narrow; preserve insets at every size. */
@media(max-width:860px){
 #app .auth-wrap{display:flex;flex-direction:column;gap:24px;max-width:520px;margin:8px auto 32px;padding:24px;border-radius:22px}
 #app .auth-visual{width:100%;padding:8px 4px 0;text-align:center}
 #app .auth-visual>.eyebrow{max-width:100%;font-size:10px;letter-spacing:1.6px;line-height:1.8}
 #app .auth-visual h2{font-size:clamp(28px,6.4vw,36px);letter-spacing:-1px;line-height:1.18;margin:18px 0 14px}
 #app .auth-visual p{margin:0 auto 8px;font-size:14px}
 #app .auth-planet{height:240px;margin:0 auto;max-width:320px}
 #app .orbit-caption{display:none}
 #app .auth-form{width:100%;padding:24px}
}
@media(max-width:420px){
 #app .auth-wrap{padding:24px 16px 16px;gap:20px}
 #app .auth-form{padding:24px 18px}
 #app .auth-visual>.eyebrow{font-size:9px;letter-spacing:1.4px}
 #app .auth-planet{height:220px}
}

/* Related projects */
#app .related-sites h2{margin:8px 0 20px}
.related-sites-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.related-site{display:flex;flex-direction:column;gap:20px;padding:24px;border:1px solid #285580;border-radius:14px;background:linear-gradient(135deg,#12253f,#0b1528);color:#bdeaff;transition:border-color .2s,background .2s}
.related-site:hover{border-color:#48dafa;background:#142d48}
.related-site:focus-visible{outline:2px solid #48dafa;outline-offset:4px}
.related-site-name{font-size:18px;font-weight:800;letter-spacing:2px;color:#eef8ff}
@media(max-width:560px){.related-sites-grid{grid-template-columns:1fr}.related-site{padding:20px;gap:12px}}
.mobile-entry{max-width:560px;margin:0 auto;padding:28px 18px max(28px,env(safe-area-inset-bottom));line-height:1.65}
.mobile-entry>.logo{margin-bottom:26px;display:flex;align-items:center;gap:5px}
.mobile-entry>.logo img{width:32px;height:32px}
.mobile-entry-card{padding:24px}
.mobile-entry-card h1{font-size:clamp(24px,6vw,32px);line-height:1.35;letter-spacing:-.04em}
.mobile-entry-planet{display:block;width:190px;max-width:75%;margin:8px auto 20px}
.mobile-entry .btn,.mobile-wallet-dialog .btn{min-height:48px;text-align:center;white-space:normal}
.mobile-install{border-top:1px solid #20354c;margin-top:24px;padding-top:16px}
.mobile-install h3{font-size:17px}
.mobile-install ol{padding-left:23px;color:#aac0d4;font-size:14px}
.mobile-install li{margin:12px 0}
.mobile-site-url{width:100%;min-width:0;box-sizing:border-box;font-size:12px;color:#a9deef;background:#070f1d;border:1px solid #28445e;border-radius:8px;padding:12px}
dialog.mobile-wallet-dialog{box-sizing:border-box;width:calc(100% - 32px);max-width:460px;max-height:85dvh;overflow:auto;padding:24px;border:1px solid #294966;border-radius:20px;background:#0b1525;color:#edf5ff;line-height:1.6}
.mobile-wallet-dialog .btn.primary{background:linear-gradient(110deg,#2572ff,#30c6f4);color:#fff;border-color:#3f9bff}
.mobile-wallet-dialog::backdrop{background:#01050dc9;backdrop-filter:blur(4px)}
.mobile-wallet-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.mobile-wallet-header h2{font-size:22px;margin:0}
.mobile-wallet-header [data-close]{font-size:26px;min-width:44px;padding:0}
.mobile-wallet-dialog details{margin-top:24px;font-size:14px}
.mobile-wallet-dialog summary{cursor:pointer;color:#9fb5ca}
.mobile-wallet-dialog .mobile-install{margin-top:12px}

.wallet-login-install{margin-top:24px;padding-top:24px;border-top:1px solid var(--line)}
.wallet-login-install .help:empty{display:none}
.wallet-login-install .help{text-align:left;margin:14px 0 0}

.lottery-schedule{margin:18px 0;padding:16px;border:1px solid var(--line);border-radius:12px;background:#071323}
.lottery-schedule p{margin:0 0 8px}
.lottery-schedule time{color:var(--text)}
#lottery-countdown{color:var(--gold);font-size:clamp(15px,4vw,20px);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}

/* Match the Planet wallet sign-in card, with one vertical flow at every viewport. */
#app .credential-auth{display:block;width:100%;max-width:520px;margin:0 auto}
#app .credential-auth .wallet-auth-content{padding:0 24px 24px}
#app .credential-auth .form{display:block;width:100%;max-width:none;margin:0;text-align:left}
#app .credential-auth .form>.btn.primary{margin-top:20px}
#app .credential-auth .auth-switch{margin-bottom:0}
#app .credential-auth:not(:has(.wallet-auth-hero)){padding-top:28px}
@media(max-width:380px){#app .credential-auth .wallet-auth-content{padding:0 18px 20px}}

/* Authentication pages use a focused card without the application footer. */
#app .shell:has(:is(.auth-methods,.auth-registration))>.local-note,#app .shell:has(:is(.auth-methods,.auth-registration))>footer{display:none}
#app .credential-login .wallet-auth-content{padding:0 16px 16px;margin-top:0}
#app .credential-login .form{display:block}
#app .credential-login .form label{display:block;margin:12px 0 8px;font-size:14px;line-height:1.4;color:var(--muted)}
#app .credential-login .form label:first-child{margin-top:0}
#app .credential-login .form input{display:block;width:100%;min-width:0;height:52px;min-height:52px;margin:0;padding:10px 12px;font-size:16px}
#app .credential-login .form>.error:empty{display:none}
#app .credential-login .form>.btn.primary{margin:22px 0 0;min-height:50px;padding:10px 16px;border-radius:10px;font-size:19px}
#app .credential-login .auth-switch{margin:8px 0 0;font-size:14px}
#app .credential-login .auth-switch a{padding:6px 0;min-height:36px}
@media(max-width:760px){
 #app:has(:is(.auth-methods,.auth-registration))>.topbar{height:56px;padding:0 12px}
 #app:has(:is(.auth-methods,.auth-registration)) .shell{padding:12px 10px 12px}
 #app .auth-methods{gap:8px;margin-bottom:10px}
 #app .auth-methods .btn{min-height:44px;padding:8px 6px;font-size:14px}
 #app .credential-login .wallet-auth-hero{padding-top:12px}
 #app .credential-login .wallet-auth-hero h1{font-size:42px;line-height:1.1;margin:5px 0 0}
 #app .credential-login .wallet-auth-hero p{font-size:18px;line-height:1.4;margin:6px 0 0}
 #app .credential-login .wallet-auth-hero img{height:clamp(120px,calc(100svh - 540px),240px);object-fit:contain}
}

@media(max-width:760px) and (max-height:680px){
 #app .credential-login .wallet-auth-hero{padding-top:8px}
 #app .credential-login .wallet-auth-content{padding-bottom:10px}
 #app .credential-login .form label{margin:10px 0 8px}
 #app .credential-login .form label:first-child{margin-top:0}
 #app .credential-login .form input{height:46px;min-height:46px}
 #app .credential-login .form>.btn.primary{margin-top:16px;min-height:46px;padding:8px 16px}
}

/* Registration starts directly with the form in both authentication methods. */
#app .wallet-auth:is(:has(#auth-form[data-mode="register"]),:has(#wallet-start-form),:has(#wallet-signup-form)) .wallet-auth-hero{display:none}
#app .wallet-auth:is(:has(#auth-form[data-mode="register"]),:has(#wallet-start-form),:has(#wallet-signup-form)) .wallet-auth-content{margin-top:0;padding-top:24px}

/* Keep withdrawal choices on one line, even on narrow phones. */
#app .withdraw-tabs{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr) minmax(0,.8fr);gap:5px;flex-wrap:nowrap}
#app .withdraw-tabs button{min-width:0;padding:10px 3px;white-space:nowrap;font-size:clamp(11px,3.5vw,15px);letter-spacing:-.4px}
@media(max-width:760px){
 #app .shell,#app:has(:is(.auth-methods,.auth-registration)) .shell{padding-left:6px;padding-right:6px}
 #app>.topbar,#app:has(:is(.auth-methods,.auth-registration))>.topbar{padding-left:8px;padding-right:8px}
 #app .card,#app .auth-form,#app .home-intro,#app .home-about,#app .balance-hero{padding-left:10px;padding-right:10px}
 #app .wallet-auth-content,#app .credential-auth .wallet-auth-content{padding-left:10px;padding-right:10px}
 #app .withdraw-destination{overflow-wrap:anywhere}
}

#app .drawer-notifications .notification-badge{position:static;margin-left:auto;flex-shrink:0;background:#60dfff;color:#03101f}

/* Company deposit account on the dashboard. */
.company-bank-card{border-color:#285774;background:linear-gradient(120deg,#10283b,#0b1628);margin-bottom:16px}
.company-bank-card h2{font-size:17px;margin:0 0 14px;color:#57d9f5}
.company-bank-details{display:flex;align-items:center;justify-content:space-between;gap:16px}
.company-bank-details>div{min-width:0}
.company-bank-name{font-weight:600}
.company-bank-number{display:block;font-size:clamp(20px,4.8vw,28px);line-height:1.4;letter-spacing:.02em;overflow-wrap:anywhere;margin:4px 0}
.company-bank-details .btn{flex-shrink:0}
.company-bank-card .help{margin:14px 0 0}
@media(max-width:480px){.company-bank-details{align-items:flex-start;flex-direction:column;gap:12px}.company-bank-details .btn{align-self:flex-end}}

/* Fixed CNY reference alongside the unchanged USDT accounting amount. */
.dual-money{display:inline-flex;flex-direction:column;max-width:100%;vertical-align:middle;line-height:1.35}.money-usdt{overflow-wrap:anywhere}.dual-money .money-cny{display:block;font-size:max(12px,.58em);font-weight:500;color:var(--muted,#9aafbf);letter-spacing:normal;line-height:1.5;overflow-wrap:anywhere}.currency-note{font-size:12px;line-height:1.6;color:var(--muted,#9aafbf);margin:8px 0 14px}.collection-title .money-cny{color:#9aafbf}
