/* ElonMars shared interface. Original blue, white and gold palette. */
:root{--blue:#4075cc;--blue-dark:#2e5dab;--ink:#183b68;--muted:#71839c;--line:#e0e8f3;--surface:#fff;--gold:#ffcf54;--radius:16px;--shadow:0 5px 20px #234e8410}
*{box-sizing:border-box}html{min-height:100%;scroll-padding-top:140px}body{max-width:520px;margin:0 auto;color:var(--ink);font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:1.55;background-color:#ededed;-webkit-font-smoothing:antialiased}a{color:var(--blue-dark);text-decoration:none}a:hover{color:#244f94}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible{outline:3px solid var(--gold);outline-offset:3px}.app-shell{min-height:100vh;background:#f3f6fc;box-shadow:0 0 60px #234e8410}.app-header{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff;padding:19px 18px 16px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;color:var(--ink);font-size:17px;font-weight:800;letter-spacing:1.2px;line-height:1.2}.brand small{display:block;font-size:8px;letter-spacing:1.45px;font-weight:600;color:var(--muted);margin-top:6px}.brand-symbol{display:flex;align-items:center;justify-content:center;position:relative;width:37px;height:39px;border-radius:12px;background:var(--blue);color:#fff;font-size:26px;font-style:italic;letter-spacing:-4px;padding-right:6px}.brand-symbol>span{color:var(--gold);font-size:27px;position:absolute;right:3px;bottom:-3px}.header-profile{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:7px 10px;border:1px solid var(--line);border-radius:9px;color:var(--blue-dark);font-size:11px;font-weight:700}.balance-bar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:13px;padding:12px 16px;background:var(--blue);color:#fff;box-shadow:0 4px 12px #2e5dab20}.balance-refresh,.balance-mail{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:37px;height:40px;border-radius:11px;background:#ffffff17;position:relative}.balance-refresh:hover,.balance-mail:hover{background:#ffffff30}.balance-total{flex:1;min-width:0}.balance-label{display:block;font-size:10px;font-weight:400;color:#e0eafa;letter-spacing:.3px}.balance-amount{display:flex;align-items:center;gap:5px;font-size:20px;font-weight:700;line-height:1.4}.balance-rate{min-width:60px;text-align:right;max-width:35%;overflow-wrap:anywhere}.balance-rate .gold{font-size:15px;font-weight:700;white-space:nowrap}.balance-rate small{font-size:10px;font-weight:400}.badge{font-size:10px;top:-3px;right:-3px;border:2px solid var(--blue);background:var(--gold);color:var(--ink);padding:0 4px;min-width:18px;text-align:center}.page-content{padding:18px 12px 12px;min-height:45vh}.page-heading{padding:4px 5px 18px}.eyebrow{display:block;font-size:9px;font-weight:700;letter-spacing:1.7px;color:var(--blue);margin-bottom:6px}h1,h2,h3{color:var(--ink);line-height:1.25}h1{font-size:25px;margin:0 0 7px;letter-spacing:-.6px}h2{font-size:17px;margin:22px 0 12px}p{margin:0 0 10px}.page-heading p{font-size:12px;color:var(--muted);margin:0}.block{background:var(--surface);color:#47617f;border:1px solid var(--line);border-radius:var(--radius);padding:16px;margin:0 0 12px;line-height:1.75;box-shadow:var(--shadow);overflow:visible;display:flow-root}.block img{max-width:100%}.feedback,.confirm{border:1px solid #cedef5;border-radius:12px;background:#eaf1fc;padding:12px 14px;margin:0 0 13px;color:var(--blue-dark);line-height:1.6;font-size:13px}.page-content>.feedback:first-child{background:transparent;border:0;text-align:left;font-size:23px;font-weight:700;letter-spacing:-.5px;color:var(--ink);padding:2px 4px 12px;margin-bottom:6px}.block b,.block strong{color:var(--ink)}.small,.minor{font-size:12px}.minor{color:var(--muted)}.fr.small{font-size:10px;color:var(--muted);padding-top:3px}.section-title{margin-top:20px}hr{border:0;border-top:1px solid var(--line);margin:14px 0}
.btnl,.btni,.myButton,.pg,button:not([class]){border:1px solid transparent;border-radius:10px;background:var(--blue);color:#fff;box-shadow:none;text-shadow:none;font-weight:700;font-size:13px;line-height:1.35;min-height:40px;padding:10px 14px;text-decoration:none;cursor:pointer;vertical-align:middle;transition:background .15s,box-shadow .15s}.btnl{display:block;text-align:center;margin:0 0 9px;padding:14px 16px;min-height:46px}.btni,.myButton,.pg{display:inline-flex;align-items:center;justify-content:center;gap:5px;margin:4px 3px 4px 0}.btni{background:#eaf1fc;border-color:#d7e3f6;color:var(--blue-dark)}a.btni{color:var(--blue-dark)}.btnl:hover,.myButton:hover,button:not([class]):hover{background:var(--blue-dark);color:#fff}.btni:hover,.pg:hover{background:#dae7fb;color:var(--blue-dark)}.pg{background:#eaf1fc;color:var(--blue-dark);min-width:40px}.mt4{margin-top:9px}button:disabled,button:disabled:hover{background:#e0e4e9!important;border-color:#d5dae1!important;color:#9099a6!important;box-shadow:none!important;cursor:not-allowed!important;transform:none!important}.link-button{min-height:30px;background:transparent;color:var(--muted);font-size:11px;font-weight:400;text-decoration:none;padding:0 3px;border:0}.link-button:hover{color:var(--blue-dark);text-decoration:underline}form.inline{display:inline}form.block>button{margin-top:11px}label{display:block;font-size:12px;font-weight:700;color:var(--ink);margin-bottom:12px}input:not([type=hidden]):not([type=checkbox]):not([type=radio]),textarea,select{width:100%;max-width:100%;display:block;border:1px solid #d2dfee;border-radius:10px;min-height:44px;padding:11px 12px;background:#f7f9fd;color:var(--ink);outline:none;box-shadow:none;margin:6px 0 10px;font-size:16px;line-height:1.4}textarea{min-height:100px;resize:vertical}input:focus,textarea:focus,select:focus{border-color:var(--blue)!important;box-shadow:0 0 0 3px #4075cc1a!important;background:#fff!important}input[type=file]{font-size:12px!important;padding:10px!important}input::file-selector-button{border:0;border-radius:6px;background:#e5edfa;color:var(--blue-dark);padding:6px 8px;margin-right:8px}form p{margin-bottom:16px}.helptext,.auth-help{color:var(--muted);font-size:11px;line-height:1.6;font-weight:400}.helptext ul{padding-left:16px}.errorlist{color:#a12e3a;font-size:12px;line-height:1.5;margin:6px 0 12px;padding:0}.pagination{padding:6px 0 14px;text-align:center}.row{padding:10px 0;gap:10px}.row+.row{border-top:1px solid var(--line)}.pet-stats{flex-wrap:wrap;gap:7px;margin:12px 0}.pet-stats span{border:1px solid var(--line);border-radius:8px;padding:5px 8px;font-size:11px;background:#f5f8fd}.profile-cover{min-height:150px;border-radius:var(--radius);position:relative;margin-bottom:12px;padding:30px 0;background-position:center;box-shadow:var(--shadow)}.profile-avatar{width:86px;height:86px;border:4px solid #fff;border-radius:24px;box-shadow:0 4px 15px #183b6820}.maze-grid{gap:6px;margin:12px 0}.maze-cell{min-height:57px;border-radius:9px;border:1px solid var(--line);background:#e9eff8;overflow:hidden}.maze-cell.open{background:#fff3c9}.maze-cell button{width:100%;height:100%;min-height:55px;border-radius:8px;font-size:11px;padding:3px}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,520px);z-index:30;display:flex;align-items:center;justify-content:space-around;background:#fffffff5;border-top:1px solid var(--line);padding:8px 5px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -4px 20px #183b680a;backdrop-filter:blur(12px)}.bottom-nav a{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;width:20%;font-size:9px;font-weight:700;color:var(--muted);min-height:48px;border-radius:10px}.bottom-nav img{width:25px;height:25px;object-fit:contain}.bottom-nav a[aria-current=page]{background:#eaf1fc;color:var(--blue-dark)}.nav-menu-icon{font-size:25px;color:var(--blue);height:25px;line-height:25px}.app-footer{text-align:center;padding:27px 15px 30px;color:var(--muted);font-size:11px}.is-player .app-footer{padding-bottom:105px}.footer-brand{font-size:16px;font-weight:700;letter-spacing:.4px}.app-footer>span{display:block;font-size:10px;margin:3px 0 12px}.app-footer>div{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin-bottom:9px}.app-footer a:not(.footer-brand){font-size:11px;color:var(--muted)}.app-footer small{font-size:9px;letter-spacing:.5px}
.menu-section{margin:0 0 25px}.menu-section h2{font-size:15px;margin:0 4px 12px}.menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.menu-card{display:flex;position:relative;flex-direction:column;align-items:flex-start;gap:4px;padding:16px 13px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);box-shadow:var(--shadow);min-height:126px}.menu-card:hover{border-color:#acc6ed;box-shadow:0 5px 18px #4075cc16}.menu-card-icon{width:34px;height:34px;border-radius:10px;background:#edf3fc;display:flex;align-items:center;justify-content:center;margin-bottom:5px}.menu-card-icon img{width:25px;height:25px;object-fit:contain}.menu-card strong{font-size:13px}.menu-card small{font-size:10px;color:var(--muted);line-height:1.5}.menu-arrow{position:absolute;right:13px;top:14px;color:#8fa9cd;font-size:18px}.business-menu{display:none}.business-create{padding:0;margin:0 0 16px;border:0;box-shadow:none;background:none}.business-create .myButton{width:100%;margin:0;border-radius:12px;min-height:47px;background:var(--blue);font-size:13px}.business-row{margin:0 0 11px;padding:14px 11px;gap:8px;border-color:var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.business-row .stats{font-size:12px}.business-row form{gap:5px}.business-row button.btni{min-height:36px;line-height:18px;margin:0;padding:7px 4px;font-size:11px;border-radius:8px}.business-row .count_room{font-size:9px;line-height:15px;text-align:center}.business-bonus{background:#e8f0fd;color:var(--blue-dark);border:1px solid #d4e2f8;margin:16px 0!important;font-size:13px;line-height:1.5;padding:14px 10px;min-height:46px}.auth-card{margin:0;padding:24px 20px;border-radius:18px;box-shadow:var(--shadow)}.is-guest .logo{display:none}.auth-card h1{font-size:25px}.auth-field label{margin-bottom:7px;font-size:12px}.auth-form .auth-control input,.auth-form .auth-control select{margin:0;height:48px}.password-toggle{margin:0;min-height:0;background:none;border:0}.auth-submit{background:var(--blue)}.auth-links{gap:14px;margin:18px 0;font-size:11px}.landing-hero{padding:18px 7px;text-align:center}.landing-hero h1{font-size:40px;letter-spacing:-1.6px;line-height:1.12;margin:14px 0}.landing-hero p{font-size:13px;color:var(--muted);max-width:340px;margin:0 auto 20px;line-height:1.7}.hero-art{height:215px;border-radius:20px;background-position:center;background-size:cover;margin:23px 0;box-shadow:var(--shadow)}.landing-hero .btnl{margin:0 auto 12px;max-width:330px}.landing-login{font-size:12px}.landing-features{display:grid;gap:10px;margin:10px 0}.landing-features>div{position:relative;background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px 16px 16px 60px}.landing-features span{position:absolute;left:16px;top:19px;color:var(--blue);font-size:20px;font-weight:700}.landing-features h2{font-size:14px;margin:0 0 4px}.landing-features p{font-size:11px;color:var(--muted);margin:0}
@media(min-width:650px){body{padding:22px 0}.app-shell{border-radius:22px;overflow:clip}.app-header{padding-top:22px}.bottom-nav{bottom:12px;border:1px solid var(--line);border-radius:17px;width:496px}.page-content{padding:22px 18px 14px}.balance-bar{border-radius:0}.app-footer{border-radius:0 0 22px 22px}}
@media(max-width:360px){.app-header{padding:15px 12px}.brand{font-size:15px;gap:7px}.brand small{font-size:7px;letter-spacing:1px}.header-profile{max-width:100px;padding:6px;font-size:10px}.balance-bar{gap:9px;padding:10px}.balance-amount{font-size:18px}.balance-refresh,.balance-mail{width:32px}.page-content{padding:16px 9px 10px}.business-row{grid-template-columns:16px 30px minmax(0,1fr);gap:6px;padding:12px 8px}.business-row .stats{font-size:11px}.business-row button.btni{font-size:10px}.menu-card{padding:14px 11px}.menu-card strong{font-size:12px}.bottom-nav a{font-size:8px}.landing-hero h1{font-size:35px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.myButton,.btnl,.btni,.pg{font-family:Arial,Helvetica,sans-serif}.menu-card-icon:has(img[src*="refresh_white"]){background:var(--blue)}.auth-control:has(.password-toggle) input{padding-right:54px!important}.auth-control .password-toggle{top:5px;height:36px;width:40px;right:4px;padding:8px}.profile-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px}.profile-metrics>div{background:#fff;border:1px solid var(--line);border-radius:14px;padding:15px;box-shadow:var(--shadow)}.profile-metrics small{display:block;color:var(--muted);font-size:10px;margin-bottom:5px}.profile-metrics strong{display:block;font-size:18px;color:var(--blue-dark)}

#mine-upgrade[hidden]{display:none}#mine-countdown{font-variant-numeric:tabular-nums}

.page-content:has(.chat-screen){padding-bottom:0;min-height:0}.app-shell:has(.chat-screen) .app-footer{display:none}.chat-screen{display:flex;flex-direction:column;position:relative;height:calc(100dvh - 250px);min-height:340px;max-height:900px}.chat-heading{padding:0 4px 12px;flex-shrink:0}.chat-heading h1{font-size:22px;margin-bottom:3px}.chat-heading>span{font-size:10px;color:var(--muted)}.chat-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b8ccea transparent;padding:10px 5px 12px;border:1px solid var(--line);border-radius:14px;background:#edf2fa}.chat-message{background:#fff;border:1px solid #e0e8f3;box-shadow:0 2px 6px #234e8408;border-radius:13px 13px 13px 3px;margin:0 22px 10px 0;padding:10px 12px;overflow-wrap:anywhere}.chat-message-own{background:#dfeafd;border-color:#ccdff9;border-radius:13px 13px 3px 13px;margin-left:22px;margin-right:0}.chat-message-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px}.chat-message-meta a{font-weight:700;font-size:11px}.chat-message-meta time{font-size:9px;color:var(--muted);white-space:nowrap}.chat-message-text{font-size:13px;line-height:1.6;color:var(--ink);white-space:normal}.chat-message-text img{max-width:100%}.chat-composer{display:flex;gap:8px;align-items:flex-end;padding:10px 0 0;flex-shrink:0}.chat-composer textarea{min-height:48px;max-height:110px;margin:0;font-size:14px;border-radius:12px;flex:1;resize:vertical}.chat-composer .myButton{height:48px;min-width:92px;margin:0;font-size:11px;padding:10px;border-radius:12px}.chat-older{display:block!important;min-height:30px!important;background:transparent!important;color:var(--blue-dark)!important;margin:0 auto 10px;font-size:10px!important;font-weight:400!important}.chat-older[hidden],.chat-new[hidden],#chat-empty[hidden]{display:none!important}.chat-new{position:absolute;bottom:75px;left:50%;transform:translateX(-50%);background:#fff!important;color:var(--blue-dark)!important;border:1px solid #bcd1f1!important;border-radius:20px!important;min-height:35px!important;font-size:11px!important;white-space:nowrap;box-shadow:0 4px 15px #234e8420!important;z-index:2}.chat-moderation{margin-top:8px;font-size:10px;color:var(--muted);flex-shrink:0}.chat-moderation summary{cursor:pointer}#chat-empty{padding:20px 10px;text-align:center;font-size:12px;color:var(--muted)}@media(min-width:650px){.chat-screen{height:calc(100dvh - 290px)}}

.pagination-numbered{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;padding:12px 0 18px}.pagination-numbered .pg{margin:0;min-width:36px;min-height:38px;padding:9px 10px;font-size:12px;border-radius:10px}.pagination-numbered .pagination-current{background:var(--blue);color:#fff;font-weight:700}.pagination-ellipsis{padding:0 3px;color:var(--muted)}.pagination-arrow{font-size:16px!important}@media(max-width:360px){.pagination-numbered{gap:5px}.pagination-numbered .pg{min-width:32px;padding:8px;min-height:34px}}

.own-ranking{border-color:#c5d8f6;background:#edf3fe}.own-ranking-stats{display:flex;align-items:center;justify-content:space-between;gap:12px}.own-ranking-stats small{display:block;color:var(--muted);font-size:10px}.own-ranking-stats strong{font-size:21px;color:var(--blue-dark)}.own-ranking-stats .myButton{margin:0;padding:10px;font-size:11px}.ranking-place{display:inline-block;margin-right:7px;color:var(--muted);font-size:11px;font-weight:700}.ranking-player-own{border:2px solid #8fb4ef;background:#edf3fe}.ranking-player:target{outline:3px solid var(--gold);outline-offset:2px}.ranking-player{scroll-margin-top:95px}

.ranking-tabs{display:flex;gap:6px;background:#e7eef9;padding:5px;border-radius:12px;margin-bottom:12px}.ranking-tabs a{flex:1;text-align:center;font-size:12px;font-weight:700;border-radius:9px;padding:9px 6px;color:var(--muted)}.ranking-tabs a[aria-current=page]{background:#fff;color:var(--blue-dark);box-shadow:0 2px 6px #234e8410}.ranking-value{float:right;font-weight:700;color:var(--blue-dark);font-size:13px}.ranking-value small{font-size:10px;font-weight:400}.ranking-last-seen{font-size:10px;color:var(--muted);margin-top:6px;clear:both}.ranking-own-value{font-size:12px;margin:10px 0 0;color:var(--muted)}.ranking-own-value b{color:var(--blue-dark)}

/* Compact business screen. */
.page-content:has(.business-heading){padding-top:12px}.business-heading{padding:0 4px 10px}.business-heading h1{font-size:19px;margin-bottom:4px;letter-spacing:-.3px}.business-heading p{font-size:11px;line-height:1.4}.business-create{margin-bottom:9px}.business-create .myButton{min-height:40px}.business-row{margin-bottom:6px;padding:9px 10px;gap:5px 8px;border-radius:12px}.business-row .stats{line-height:17px}.business-row button.btni{min-height:32px;padding:5px 4px}.business-bonus{margin-top:10px!important}@media(max-width:360px){.business-row{padding:8px 7px;gap:5px 6px}}

/* Shared compact spacing, matching the business cards. */
.page-content{padding-top:12px}.page-content>.block,.page-content>.feedback,.page-content>.confirm,.page-content>.btnl{margin-bottom:6px}.page-content>.mt4{margin-top:6px}.page-heading{padding-bottom:10px}.menu-grid{gap:6px}.menu-section{margin-bottom:14px}.menu-section h2{margin-bottom:8px}.profile-metrics{gap:6px;margin-bottom:6px}.profile-cover{margin-bottom:6px}.landing-features{gap:6px}.auth-field{margin-bottom:12px}.chat-message{margin-bottom:6px}.pagination-numbered{padding-top:8px;padding-bottom:10px}.business-create{margin-bottom:6px}.business-bonus{margin-top:6px!important;margin-bottom:6px!important}

/* Compact controls and card interiors throughout the game. */
.block{padding:10px 11px;border-radius:12px;line-height:1.6}.feedback,.confirm{padding:8px 10px;border-radius:10px}.btnl,.btni,.myButton,.pg,button:not([class]){min-height:32px;padding:7px 10px;font-size:11px;border-radius:8px;line-height:1.45}.btnl{min-height:36px;padding:9px 11px}.btni,.myButton,.pg{margin:3px 3px 3px 0}.pg{min-width:32px}form.block>button{margin-top:6px}.block label{margin-bottom:8px}.block input:not([type=hidden]):not([type=checkbox]):not([type=radio]),.block select{min-height:40px;padding:8px 10px;margin:5px 0 7px}.block textarea{padding:9px 10px;margin:5px 0 7px;min-height:78px}.block form p,form.block p{margin-bottom:10px}.row{padding:7px 0;gap:8px}.menu-card{padding:11px 10px;min-height:108px;border-radius:12px}.menu-card-icon{width:30px;height:30px;margin-bottom:3px}.menu-card-icon img{width:23px;height:23px}.menu-card strong{font-size:12px}.profile-metrics>div{padding:10px 11px;border-radius:12px}.profile-metrics strong{font-size:17px}.pet-stats{margin:8px 0;gap:5px}.pet-stats span{padding:4px 6px}.auth-card{padding:18px 15px}.auth-card h1{margin-bottom:18px}.auth-submit{height:40px;font-size:13px;border-radius:10px}.auth-form .auth-control input,.auth-form .auth-control select{height:44px}.password-toggle{width:40px;height:40px;top:2px}.pagination-numbered .pg{min-width:32px;min-height:32px;padding:7px 9px;font-size:11px}.business-create .myButton{min-height:36px}.business-bonus{min-height:36px;padding:9px 10px;font-size:11px}.own-ranking-stats .myButton{padding:7px 9px;min-height:32px}.ranking-tabs{padding:4px;gap:4px}.ranking-tabs a{padding:7px 5px;font-size:11px}.chat-composer .myButton{height:42px;min-height:42px;min-width:85px;padding:8px;margin:0}.chat-composer textarea{min-height:42px;padding:9px 10px}.chat-message{padding:8px 10px}.chat-heading{padding-bottom:8px}.landing-features>div{padding:12px 12px 12px 55px}.landing-features span{top:14px}.business-row button.btni{min-height:32px;padding:5px 4px;margin:0}.link-button{min-height:30px}.auth-control .password-toggle{min-height:36px}.balance-refresh,.balance-mail{min-height:40px}.bottom-nav a{min-height:48px}

/* Uniform compact page titles. */
h1,.page-content>.feedback:first-child,.auth-card h1,.chat-heading h1,.landing-hero h1,.business-heading h1{font-size:19px;line-height:1.3;letter-spacing:-.3px;margin:0 0 4px}.page-content>.feedback:first-child{padding:0 4px 6px;margin:0 0 6px}.page-heading,.business-heading{padding:0 4px 8px}.page-heading p{margin:0;line-height:1.4}.page-heading .eyebrow{margin-bottom:4px}.auth-card h1{margin:5px 0 12px}.chat-heading{padding:0 4px 6px}.chat-heading h1{margin-bottom:2px}.landing-hero{padding-top:10px}.landing-hero h1{margin:8px 0}.menu-section h2,h2{font-size:15px;margin:12px 0 6px;line-height:1.3}.menu-section h2{margin:0 4px 6px}h3{font-size:14px;margin:8px 0 5px}

.ranking-list{list-style:none;margin:0 0 6px;padding:0;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}.ranking-list .ranking-player{display:flex;align-items:center;gap:9px;margin:0;padding:9px 10px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none;line-height:1.4}.ranking-list .ranking-player:last-child{border-bottom:0}.ranking-list .ranking-player-own{background:#edf3fe;box-shadow:inset 3px 0 var(--blue)}.ranking-list .ranking-place{flex:0 0 30px;margin:0;font-size:12px;font-variant-numeric:tabular-nums;text-align:right;color:var(--muted)}.ranking-player-info{flex:1;min-width:0}.ranking-player-info>a{font-size:12px;font-weight:700;overflow-wrap:anywhere}.ranking-list .ranking-last-seen{margin-top:3px;font-size:9px}.ranking-list .ranking-value{float:none;flex-shrink:0;text-align:right;font-size:13px;max-width:35%;overflow-wrap:anywhere}.ranking-list .ranking-value small{display:block;margin-top:2px;font-size:9px;font-weight:400;color:var(--muted)}.ranking-list .ranking-player:target{outline:none;background:#fff5d5}.ranking-empty{padding:14px;color:var(--muted);font-size:12px}

.ranking-avatar-link{display:flex;align-items:center;flex:0 0 28px}.ranking-avatar{width:28px;height:28px;object-fit:cover;border-radius:8px;border:1px solid var(--line);background:#edf3fe}.ranking-list .ranking-player{gap:7px}.ranking-list .ranking-place{flex-basis:26px}

.chat-author{display:flex;align-items:center;gap:6px;min-width:0}.chat-author span{overflow-wrap:anywhere}.chat-avatar{width:24px;height:24px;border-radius:7px;object-fit:cover;flex-shrink:0;border:1px solid var(--line)}

.game-notification{position:fixed;inset:0;margin:auto;width:calc(100% - 36px);max-width:350px;border:1px solid var(--line);border-radius:18px;background:#fff;color:var(--ink);padding:22px 20px 18px;box-shadow:0 20px 70px #183b6833;text-align:center;max-height:80dvh;overflow-y:auto}.game-notification::backdrop{background:#10284970;backdrop-filter:blur(3px)}.notification-icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;margin:0 auto 10px;border-radius:50%;background:#eaf1fc;color:var(--blue);font-size:23px;font-weight:700}.game-notification h2{font-size:17px;margin:0 0 10px}.notification-text p{font-size:13px;line-height:1.65;margin:0 0 10px;color:#47617f}.game-notification .myButton{min-height:38px;width:100%;margin:8px 0 0;font-size:12px}.game-notification[open]{display:block}

.balance-profile{display:flex;align-items:center;justify-content:center;flex:0 0 37px;height:40px;border-radius:11px;background:#ffffff17}.balance-profile:hover{background:#ffffff30}.balance-profile img{width:28px;height:28px;border-radius:8px;object-fit:cover;border:1px solid #ffffff50}.balance-bar{gap:10px}.chat-screen{height:calc(100dvh - 175px)}@media(min-width:650px){.chat-screen{height:calc(100dvh - 215px)}}@media(max-width:360px){.balance-bar{gap:7px}.balance-profile{flex-basis:32px}.balance-profile img{width:25px;height:25px}}

.angel-confirm-actions{display:flex;gap:7px;align-items:center}.angel-confirm-actions .myButton{flex:1;width:auto;margin:0}.angel-confirm-actions .btni{min-height:38px;margin:0}.angel-confirm .notification-text{text-align:left}

.corporation-card{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:11px 12px;margin-bottom:6px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);box-shadow:var(--shadow);text-align:left;line-height:1.4;min-height:44px}.corporation-card strong{font-size:12px;overflow-wrap:anywhere}.corporation-card>span{color:var(--muted);font-size:10px;white-space:nowrap;flex-shrink:0}.corporation-arrow{margin-left:6px;font-size:17px;color:var(--blue)}.corporation-card:hover{border-color:#b8cfee;background:#f7faff;color:var(--blue-dark)}

.enterprise-sprite{display:block;background-image:url('/static/img/elonmars/business-atlas.png');background-size:400% 400%;background-repeat:no-repeat;width:40px;height:40px;border-radius:8px;flex-shrink:0}.business-row .business-sprite-link{grid-column:2;grid-row:1 / 4;align-self:center}.business-row .count_room{grid-row:1 / 4}.business-row .business-name{grid-column:3;grid-row:1;font-size:11px;font-weight:700;color:var(--ink);line-height:1.3}.business-row .stats{grid-row:2;font-size:11px}.business-row form{grid-row:3}.business-detail-nav{display:grid;grid-template-columns:28px minmax(0,1fr) 28px;align-items:center;gap:6px;margin-bottom:6px}.business-detail-nav h1{text-align:center;font-size:16px;margin:0}.business-detail-nav a{font-size:34px;line-height:38px;text-align:center;color:var(--blue);border-radius:8px}.manager-hire{margin-bottom:6px}.manager-hire .myButton{display:flex;align-items:center;justify-content:center;gap:5px;width:100%;margin:0;min-height:38px}.manager-row{display:grid;grid-template-columns:42px minmax(0,1fr);gap:5px 8px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:9px 10px;margin-bottom:6px}.manager-sprite{grid-column:1;grid-row:1 / 3;width:42px;height:42px}.manager-top{display:flex;align-items:center;justify-content:space-between;gap:5px;grid-column:2;font-size:11px}.manager-top strong{color:var(--ink)}.manager-top>span{font-size:9px;color:var(--muted);white-space:nowrap}.manager-row form{grid-column:2;display:flex;gap:4px}.manager-row .btni{margin:0;min-height:32px;padding:5px 7px;gap:3px;font-size:10px}.manager-row .btni:first-of-type{background:var(--blue);color:#fff;flex:1}.manager-note{margin:8px 3px;color:var(--muted);font-size:10px;line-height:1.5}.business-return{display:block;text-align:center;margin-top:12px;font-size:11px}@media(max-width:360px){.business-row .enterprise-sprite{width:30px;height:30px}.manager-row{padding:8px;gap:5px 6px}.manager-top>span{font-size:8px}}

#manager-live button:disabled img{filter:grayscale(1);opacity:.55}#manager-live button:disabled{cursor:not-allowed}

.manager-row form{display:grid;grid-template-columns:minmax(0,1fr) repeat(3,auto);gap:4px}.manager-row .btni{min-width:0;padding:5px 6px}

/* Prevent browser tap shading on containers and remove frosted overlays. */
html,body,*,*::before,*::after{-webkit-tap-highlight-color:transparent}.bottom-nav{background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none}.game-notification::backdrop{backdrop-filter:none;-webkit-backdrop-filter:none}

#corp-statue-button[hidden]{display:none}

.corp-visitor-heading{text-align:center;margin-bottom:6px}.corp-visitor-heading h1{font-size:17px;margin-bottom:2px}.corp-visitor-heading p{font-size:11px;margin:0;color:var(--muted)}.corp-banner{border:1px solid var(--line);border-radius:12px;background:#fff;margin-bottom:6px;overflow:hidden;text-align:center}.corp-banner>img{display:block;width:100%;height:155px;object-fit:contain;background:#edf3fe}.corp-banner>div{padding:7px 10px;font-size:11px;overflow-wrap:anywhere}.corp-statue{display:flex;align-items:center;gap:9px}.corp-statue>div{flex:1}.corp-statue strong{font-size:12px}.corp-statue small{display:block;font-size:10px;color:var(--muted)}#corp-statue-level{font-size:16px;font-weight:700;color:var(--blue-dark)}.corp-section-link,.corp-section>summary{display:flex;align-items:center;justify-content:space-between;width:100%;background:var(--blue);color:#fff;border:0;border-radius:9px;margin:0 0 6px;padding:10px 12px;font-size:12px;font-weight:700;cursor:pointer;list-style:none}.corp-section-link:hover{background:var(--blue-dark);color:#fff}.corp-section>summary::-webkit-details-marker{display:none}.corp-section>summary:after{content:'⌄';font-size:17px}.corp-section[open]>summary:after{content:'⌃'}.corp-section{margin-bottom:6px}.corp-section[open]{padding-bottom:2px}.corp-member-list{padding:0;margin:0 0 6px;list-style:none;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}.corp-member-list li{display:flex;align-items:center;gap:7px;padding:8px 10px;border-bottom:1px solid var(--line);font-size:11px}.corp-member-list li:last-child{border-bottom:0}.corp-member-list img{width:24px;height:24px;object-fit:cover;border-radius:7px}.corp-member-list li>div{flex:1;min-width:0}.corp-member-list small{display:block;font-size:9px;color:var(--muted)}.corp-member-list strong{font-size:11px;color:var(--blue-dark)}.corp-apply{margin-bottom:6px;text-align:center}.corp-apply .myButton{display:block;width:100%;margin:0;min-height:36px}.corp-apply p{font-size:11px;color:var(--muted);margin:8px 0}

.balance-menu{display:flex;align-items:center;justify-content:center;flex:0 0 37px;height:40px;border-radius:11px;background:#ffffff17;color:#fff;font-size:24px;line-height:1}.balance-menu:hover{background:#ffffff30;color:#fff}.bottom-nav .nav-profile-avatar{border-radius:7px;object-fit:cover;border:1px solid var(--line)}@media(max-width:360px){.balance-menu{flex-basis:32px;font-size:22px}}

.menu-modal{position:fixed;inset:0;margin:auto;width:calc(100% - 24px);max-width:480px;max-height:82dvh;padding:0 12px 12px;border:1px solid var(--line);border-radius:16px;background:#f3f6fc;color:var(--ink);box-shadow:0 15px 60px #183b6833;overflow-y:auto;overscroll-behavior:contain}.menu-modal::backdrop{background:#10284970}.menu-modal-heading{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;background:#f3f6fc;padding:12px 0 10px;margin-bottom:6px;border-bottom:1px solid var(--line)}.menu-modal-heading h2{font-size:17px;margin:0}.menu-modal-heading button{display:flex;align-items:center;justify-content:center;width:34px;min-height:34px;padding:0;background:#e4edfa;color:var(--blue-dark);font-size:24px;border-radius:9px}.menu-modal .menu-section{margin-bottom:12px}.menu-modal .menu-card{min-height:98px}.menu-modal .menu-section h2{font-size:13px;margin:0 0 6px}.menu-modal-open{overflow:hidden}

/* Dense list navigation inside the menu dialog only. */
.menu-modal .menu-grid{display:flex;flex-direction:column;gap:0;border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden}.menu-modal .menu-card{display:grid;grid-template-columns:26px minmax(0,1fr) 15px;align-items:center;gap:8px;min-height:37px;padding:5px 9px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none}.menu-modal .menu-card:last-child{border-bottom:0}.menu-modal .menu-card:hover{background:#edf3fe;box-shadow:none}.menu-modal .menu-card-icon{width:25px;height:25px;margin:0;border-radius:7px}.menu-modal .menu-card-icon img{width:19px;height:19px}.menu-modal .menu-card strong{font-size:11px;font-weight:600;line-height:1.3}.menu-modal .menu-card small{display:none}.menu-modal .menu-arrow{position:static;font-size:14px;line-height:1;text-align:right}.menu-modal .menu-section{margin-bottom:10px}.menu-modal .menu-section h2{font-size:11px;margin:0 2px 5px;color:var(--muted)}.menu-modal-heading{padding:9px 0 8px}.menu-modal-heading h2{font-size:16px}
.currency-icon{width:20px;height:20px;object-fit:contain;vertical-align:middle;flex-shrink:0;display:inline-block;margin-right:3px}.currency-unit{white-space:nowrap}.currency-unit .currency-icon{width:18px;height:18px}.angel-stats{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:6px}.angel-stats .angel-stat{margin:0;padding:10px 12px;min-width:0}.angel-stat-label{display:block;font-size:12px;color:#6883aa;margin-bottom:5px}.angel-stat-value{display:flex;align-items:center;gap:5px;color:#183b68;font-size:21px;line-height:1.2;overflow-wrap:anywhere}.angel-stat-value .currency-icon{width:30px;height:30px}.angel-stat-ruby{grid-column:1/-1;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.angel-stat-ruby .angel-stat-label{margin:0}.angel-stat-ruby .btni{margin-left:auto}.angel-rules{padding:10px 12px!important}.angel-rules>div+div{border-top:1px solid #e5edf9;margin-top:8px;padding-top:8px}.angel-rules strong{font-size:13px;color:#244f8d}.angel-rules p{font-size:12px;line-height:1.5;margin:3px 0 0}.angel-rules .angel-preserved{background:#edf4ff;border-radius:8px;padding:7px 9px;margin-top:8px;color:#2e5dab}
.ruby-shop-hero{display:flex;align-items:center;gap:12px}.ruby-shop-hero>img{width:64px;height:64px;object-fit:contain;flex-shrink:0}.ruby-shop-hero strong{font-size:15px;color:#183b68}.ruby-shop-hero p{margin:5px 0 0;font-size:12px;line-height:1.55}
.angel-forecast summary{cursor:pointer;font-size:13px;font-weight:600;color:#2e5dab}.angel-forecast-rows>div{display:flex;justify-content:space-between;align-items:center;padding:5px 0;border-top:1px solid #e5edf9;font-size:12px}.angel-forecast-rows strong{display:flex;align-items:center;gap:3px;color:#183b68}
.section-title{font-size:15px;margin:0 0 6px;color:#183b68}.economy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.economy-grid form.block{margin:0}.economy-grid .btni,.economy-grid .myButton{width:100%;box-sizing:border-box}.economy-row{display:flex;justify-content:space-between;align-items:center;gap:6px;padding:5px 0;font-size:13px}.relic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.relic-item{display:flex;flex-direction:column;align-items:center;gap:4px;border:1px solid #dbe6f8;border-radius:9px;padding:8px 4px;background:#f6f9ff;text-align:center}.relic-item>span{font-size:23px;color:#daa020}.relic-item small{font-size:10px;line-height:1.3}.relic-empty{opacity:.5}.effect-value{display:block;font-size:21px;color:#4075cc}.resource-history{display:flex;flex-wrap:wrap;gap:4px 8px;border-top:1px solid #e5edf9;padding:6px 0;font-size:12px}.resource-history small{width:100%;color:#6883aa}
#section-panel .block{padding:10px 12px;margin:0 0 6px;border-radius:12px}#section-panel p{font-size:13px;line-height:1.5;margin:6px 0}#section-panel p.helptext{font-size:11px}#section-panel .economy-grid>.block{margin:0}#section-panel .btni,#section-panel .myButton{min-height:32px;height:auto;padding:6px 9px;font-size:12px;line-height:1.35;border-radius:8px;white-space:normal}#section-panel .economy-grid{margin-bottom:6px}
#section-panel .economy-grid button{display:block;text-align:center}@media(max-width:360px){.balance-bar{gap:4px}.balance-total{min-width:0}.balance-amount{font-size:16px!important;gap:2px}.balance-amount img{width:20px;height:20px}.balance-rate .gold{font-size:12px;white-space:nowrap}.balance-rate{min-width:0}}

.gateway-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.gateway-heading a{font-size:30px;padding:0 10px}.gateway-heading h2{margin:0!important}.cargo-grid{margin:10px 0}.cargo-grid form{text-align:center}.cargo-grid button{width:100%;min-height:36px!important}.progress-line{display:flex;align-items:center;justify-content:space-between;gap:8px}.progress-track{height:5px;background:#e8eef9;border-radius:6px;overflow:hidden;margin:8px 0}.progress-track span{display:block;height:100%;background:#4077ce}.milestone-icon{font-size:23px;margin-right:6px}.progress-nav{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:6px}

.union-avatar{width:24px;height:24px;border-radius:7px;object-fit:cover;vertical-align:middle;margin-right:5px}.union-ranking{padding-left:24px;margin:5px 0}.union-ranking li{padding:8px 0;border-bottom:1px solid #e6edf8}.union-ranking li a{display:inline-block;max-width:65%;vertical-align:middle}.union-ranking li small{display:block;font-size:11px}.union-ranking li>strong{float:right;font-size:12px}.union-post p{overflow-wrap:anywhere}

.gift-page-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.gift-page-heading p{margin:3px 0!important}.gift-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:8px}.gift-received,.gift-choice{border:1px solid #dce7f9;border-radius:13px;background:#fff;overflow:hidden;box-shadow:0 4px 12px #2458a009}.gift-art{display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#f2f6ff,#e8f0fc);padding:12px;aspect-ratio:1.25}.gift-art>img{width:100%;height:100%;max-height:136px;object-fit:contain;filter:drop-shadow(0 5px 5px #24487720)}.gift-card-info{display:flex;flex-direction:column;gap:5px;padding:10px}.gift-card-info strong,.gift-choice>strong{font-size:12px;color:#174779;overflow-wrap:anywhere}.gift-card-info time{font-size:10px;color:#7c90ac}.gift-option{display:block;position:relative;cursor:pointer;margin:0!important}.gift-option>input{position:absolute;width:1px;height:1px;opacity:0}.gift-choice{display:flex;flex-direction:column;height:100%;border:2px solid #dce7f9;transition:border-color .15s,box-shadow .15s}.gift-choice>strong{padding:8px 8px 0;text-align:center}.gift-price{display:flex;align-items:center;justify-content:center;gap:4px;margin:8px;color:#3268ba;font-size:12px}.gift-select-label{display:block;background:#edf3ff;color:#386dbb;padding:7px;text-align:center;font-size:11px;font-weight:700}.gift-option input:checked+.gift-choice{border-color:#4075cc;box-shadow:0 0 0 2px #4075cc20}.gift-option input:checked+.gift-choice .gift-select-label{background:#4075cc;color:white}.gift-option input:checked+.gift-choice .gift-select-label:after{content:' ✓'}.gift-option input:focus-visible+.gift-choice{outline:2px solid #d6a437;outline-offset:2px}.gift-empty{text-align:center;padding:24px 12px!important}.gift-empty>span{font-size:40px}.gift-send-footer{text-align:center}.gift-send-footer button{width:100%}@media(min-width:480px){.gift-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:360px){.gift-page-heading{align-items:flex-start;flex-direction:column}}
.gift-send-form .gift-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.gift-card-info{overflow-wrap:anywhere}.gift-page-heading>div{min-width:0}.gift-page-heading h2{overflow-wrap:anywhere}

.bottom-nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr))}.bottom-nav a{width:100%;min-width:0;font-size:9px}.nav-union-icon{height:25px;line-height:25px;font-size:28px;color:#4075cc}.boost-status{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:7px 0;border-bottom:1px solid #e6edf8}.boost-status:last-child{border-bottom:0}.boost-status small{display:block;font-size:11px;color:#7187a6}.boost-status strong{font-size:13px}.purchase-check{color:#327555;font-weight:700}.package-owned{border-color:#4075cc!important;background:#f0f5ff!important}.boost-package-grid .effect-value{font-size:25px}.boost-package-grid button,.boost-gold-grid button{width:100%;margin-right:0!important}.purchase-dialog{width:min(92vw,370px);padding:20px!important}.purchase-dialog h2{font-size:18px;margin:0 0 8px}.purchase-dialog p{font-size:12px;margin:8px 0}.purchase-summary{margin:14px 0;padding:10px 12px;border:1px solid #dce7f9;border-radius:10px;background:#f5f8ff}.purchase-summary>div{display:flex;justify-content:space-between;gap:10px;padding:5px 0;font-size:13px}.purchase-summary dd{margin:0;font-weight:700}.purchase-summary dt{color:#7187a6}.purchase-shortage{color:#b33e4e}.purchase-active{padding:10px;border-radius:8px;background:#fff5db;color:#805f1b;line-height:1.5}.purchase-dialog-actions{display:flex;gap:8px;justify-content:flex-end}.purchase-dialog-actions button{flex:1;margin:0!important}
@media(max-width:360px){.bottom-nav a{font-size:8px;letter-spacing:-.1px}.bottom-nav img{width:23px;height:23px}.nav-union-icon{font-size:25px}}

#header-package{display:flex;justify-content:flex-end;align-items:center;gap:4px;font-size:10px;line-height:16px;color:#ffe093}#header-package[hidden]{display:none}
.reward-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:8px 0}.reward-item{display:flex;align-items:center;gap:8px;padding:8px 10px;background:#f0f5ff;border:1px solid #dbe7fc;border-radius:10px}.reward-item img{object-fit:contain;flex-shrink:0;filter:drop-shadow(0 2px 2px #173a6526)}.reward-item strong{display:block;color:#174f98;font-size:16px}.reward-item small{display:block;font-size:11px;color:#6581a5}.reward-flight{position:fixed;pointer-events:none;z-index:9999;width:30px;height:30px;object-fit:contain;filter:drop-shadow(0 2px 3px #315d9a55)}.reward-arrived{animation:reward-pulse .45s ease-out}@keyframes reward-pulse{50%{transform:scale(1.2)}}@media(prefers-reduced-motion:reduce){.reward-arrived{animation:none}}
