/* Shared spacing and navigation for public pages and the game. */
:root{--clarity-gap:clamp(16px,2vw,28px)}
*,*:before,*:after{box-sizing:border-box}img{max-width:100%}button,a,input,select,textarea{touch-action:manipulation}button{white-space:normal}button:focus-visible,a:focus-visible{outline:3px solid #d4f184;outline-offset:4px}
.content,.community-main,.wiki-reading{min-width:0;overflow-wrap:anywhere}.content{padding:clamp(18px,2.6vw,38px)}.content>.panel,.content>section,.content>.gap-top{margin-bottom:var(--clarity-gap)}.page-heading{gap:18px;flex-wrap:wrap}.page-heading p{max-width:68ch;line-height:1.65}.panel{min-width:0}.actions,.settings-links,.shop-tabs,.event-jump{gap:12px;flex-wrap:wrap}.nav-group{display:grid;gap:3px;margin-bottom:15px}.nav-group-label{display:block;font-size:10px;letter-spacing:1.4px;text-transform:uppercase;color:#a2b4a6;padding:8px 14px}.nav-label{display:none}.sidebar{overflow-y:auto;overscroll-behavior:contain}.sidebar .nav button{min-height:43px}.sidebar-bottom .demo-note{display:none}.brand-sub{margin-bottom:12px}.nav-activation{margin-top:8px}.shell .game-topbar{gap:12px;flex-wrap:wrap}.top-resources{flex-wrap:wrap;gap:10px}.account-actions{flex-wrap:wrap;gap:10px}.header-location{min-width:0}.topbar .resource small{white-space:normal}.footer{gap:12px;flex-wrap:wrap;line-height:1.7}.content table{width:100%;border-collapse:collapse}.content td,.content th{padding:14px;text-align:left;border-bottom:1px solid #32463c}.community-table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}.community-table-wrap table{min-width:660px;width:100%}.ranking-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:20px 0}.ranking-pagination button{padding:12px 18px;background:#1b2b23;border:1px solid #637644;border-radius:9px;color:#e3ecd7;min-height:44px}.ranking-pagination button:disabled{opacity:.4;cursor:default}.event-reward-art{float:right;width:clamp(110px,23vw,220px);height:auto;object-fit:contain;filter:drop-shadow(0 12px 18px #0006)}.event-teaser-art{display:block;width:160px;height:140px;object-fit:contain;margin:auto}.mechis-egg{display:block!important;width:200px!important;height:200px!important;object-fit:contain;margin:12px auto}.event-jump{display:flex;margin:16px 0 26px}.event-jump a{padding:12px 18px;border:1px solid #547048;border-radius:30px;color:inherit}.event-jump a:hover{background:#243829}.event-reward-art~p{line-height:1.75}.referral-event-announcement{display:flow-root;padding:clamp(20px,3vw,36px)}.referral-event-announcement>p{max-width:80ch}.referral-original-summary{clear:both}.mission-cards,.pioneer-achievements,.ranking-prizes-grid{gap:var(--clarity-gap)}.daily-mission progress{width:100%}.daily-panel hr{border:0;border-top:1px solid #40513a;margin:26px 0}.public-home-sections{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:24px 0 54px}.public-home-card{min-width:0;background:linear-gradient(135deg,#1c2a21,#101b17);padding:28px;border:1px solid #45503b;border-radius:18px}.public-home-card h2{font-size:26px!important;margin:10px 0!important}.public-home-card p{line-height:1.7;color:#b9c7b3}.public-home-card a{display:inline-flex;min-height:44px;align-items:center;color:#d4ef99}.public-home-card img{width:100%;height:190px;object-fit:contain}.public-home-hero{padding-bottom:35px!important}.public-home-hero .mt-dino{border-radius:24px}.public-home-card.wide{grid-column:span 2}.mt-nav{flex-wrap:wrap;gap:12px 24px}.mt-nav a{min-height:44px;display:inline-flex;align-items:center}.mt-nav .mt-brand{margin-right:auto}.community-banner{flex-wrap:wrap;gap:15px}.tutorial-library{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.tutorial-lesson{padding:18px;border:1px solid #3d5142;border-radius:12px;min-width:0}.tutorial-lesson h3{font-size:18px}.tutorial-lesson button,.tutorial-lesson a{margin-top:10px}.tutorial-figure{margin:22px 0}.tutorial-figure img{display:block;width:100%;height:auto;border-radius:14px}.tutorial-figure figcaption{font-size:13px;line-height:1.6;color:#b9c7b3;margin-top:10px}.guide-section{scroll-margin-top:25px}.guide-section p,.guide-section li{line-height:1.8;max-width:85ch}.guide-section ol,.guide-section ul{padding-left:22px}.wiki-category-links a{min-height:42px}.mobile-menu-grid{gap:12px}.mobile-menu-grid button{min-width:0;min-height:72px;overflow-wrap:anywhere}.section-heading{flex-wrap:wrap;gap:12px}
@media(min-width:1101px){.sidebar{width:235px}.main{margin-left:0}.sidebar .nav{display:block}.nav-group{display:grid}.sidebar .nav button{width:100%;text-align:left}.mobile-nav-more{display:none!important}.sidebar .mobile-view-shortcut{display:none!important}}
@media(max-width:1100px){.public-home-sections{grid-template-columns:repeat(2,minmax(0,1fr))}.tutorial-library{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar .resource{padding:6px}.topbar .account-actions span{display:none}.shell .game-topbar{padding:14px}.event-reward-art{width:145px}}
@media(max-width:700px){.public-home-sections,.tutorial-library{grid-template-columns:1fr}.public-home-card.wide{grid-column:auto}.mt-nav{padding:12px 18px!important;justify-content:center}.mt-nav .mt-brand{flex-basis:100%;justify-content:center;margin:0}.mt-nav a{font-size:12px}.mt-hero{padding:25px 20px!important;gap:24px!important}.mt-hero h1{font-size:clamp(34px,11vw,54px)!important}.mt-hero .mt-dino{width:100%!important;max-height:320px;object-fit:cover}.mt-main,.community-main{padding:22px 16px!important}.community-heading h1{font-size:clamp(32px,10vw,48px)!important}.community-panel{padding:20px}.event-reward-art{float:none;display:block;margin:0 auto 12px;width:180px}.ranking-pagination{justify-content:center}.ranking-pagination span{flex-basis:100%;text-align:center;order:-1}.content{padding:16px 12px 100px}.page-heading h1{font-size:30px}.hero-copy{max-width:100%}.hero-copy h2{font-size:36px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.top-resources .materials{display:none}.wallet-btn{font-size:11px}.top-resources{gap:6px}.account-actions{margin-left:auto}.referral-prize-grid{grid-template-columns:1fr}.referral-prize-grid>div{min-width:0}.community-table-wrap{margin:0}.pioneer-achievements{grid-template-columns:1fr}.ranking-prizes-grid{grid-template-columns:1fr}.ranking-prize-gallery{flex-wrap:wrap}.ranking-prize-extras{min-width:0}.wiki-header nav{gap:10px}.event-jump a{padding:10px 14px}.mechis-egg{width:170px!important;height:170px!important}}
/* Flatten grouped navigation into the existing five-slot mobile bar. */
@media(max-width:950px){.sidebar .nav-group{display:contents}.sidebar .nav-group-label{display:none}}
html[data-view="mobile"] .sidebar .nav-group{display:contents}html[data-view="mobile"] .nav-group-label{display:none}

.section-help-bar{display:flex;justify-content:flex-end;align-items:center;gap:18px;margin:0 0 18px;font-size:12px}.section-help-bar a{color:#c9df9e}.nav-group button span{min-width:0}.sidebar .nav{max-height:none}.sidebar .brand img{cursor:pointer}

:root[data-view="mobile"] .sidebar .nav-group{display:contents}:root[data-view="mobile"] .sidebar .nav-group-label{display:none}:root[data-view="mobile"] .sidebar .nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:58px;padding:6px 2px;border-radius:9px;font-size:10px}:root[data-view="mobile"] .sidebar .nav button:not([data-page="home"]):not([data-page="campaign"]):not([data-page="collection"]):not([data-page="shop"]):not(.mobile-nav-more){display:none!important}:root[data-view="mobile"] .sidebar .nav button>span{display:block!important;font-size:10px;line-height:1.2}:root[data-view="mobile"] .sidebar .nav .mobile-nav-more{display:flex!important}:root[data-view="mobile"] .sidebar .nav{grid-template-columns:repeat(5,minmax(0,1fr));overflow:visible}:root[data-view="mobile"] .sidebar .nav button.active:before{display:none}
@media(max-width:950px){:root:not([data-view="desktop"]) .sidebar .nav-group{display:contents}:root:not([data-view="desktop"]) .sidebar .nav-group-label{display:none}:root:not([data-view="desktop"]) .sidebar .nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:58px;padding:6px 2px;border-radius:9px;font-size:10px}:root:not([data-view="desktop"]) .sidebar .nav button:not([data-page="home"]):not([data-page="campaign"]):not([data-page="collection"]):not([data-page="shop"]):not(.mobile-nav-more){display:none!important}:root:not([data-view="desktop"]) .sidebar .nav button>span{display:block!important;font-size:10px;line-height:1.2}:root:not([data-view="desktop"]) .sidebar .nav .mobile-nav-more{display:flex!important}:root:not([data-view="desktop"]) .sidebar .nav{grid-template-columns:repeat(5,minmax(0,1fr));overflow:visible}:root:not([data-view="desktop"]) .sidebar .nav button.active:before{display:none}}
.shell .game-topbar .header-unit-price{display:none!important}.shell .game-topbar .header-balance{min-width:115px;max-width:180px;flex:0 1 auto}.shell .game-topbar .holding-usd{display:none!important}.shell .game-topbar .mechis-source{display:none}.shell .game-topbar .top-resources{justify-content:flex-start}.shell .game-topbar .wallet-btn{display:none}.shell .game-topbar .holding-token-art{width:28px;height:28px}.shell .game-topbar{padding:14px 22px}.shell .game-topbar .resource{padding:9px 12px;min-height:52px}.top-resources .holding-token-data{display:grid;grid-template-columns:auto auto;align-items:center;gap:8px}.top-resources .holding-balance{font-size:15px}.shell .game-topbar .holding-symbol{font-size:10px}@media(max-width:700px){.shell .game-topbar .header-balance{min-width:0;max-width:none;flex:1 1 0}.shell .game-topbar .resource{padding:7px;min-height:46px}.shell .game-topbar .top-resources{display:flex;flex-wrap:nowrap;width:100%}.shell .game-topbar .holding-token-art{width:22px;height:22px}.shell .game-topbar .holding-token-data{gap:3px}.shell .game-topbar .holding-balance{font-size:13px}.shell .game-topbar{padding:10px 14px}.shell .game-topbar .mechis-holding{width:auto}.shell .game-topbar .header-location{font-size:11px}}

:root[data-view="mobile"] .shell .game-topbar .top-resources{display:flex!important;flex-wrap:nowrap!important;gap:7px!important}:root[data-view="mobile"] .shell .game-topbar .top-resources .header-balance{flex:1 1 0!important;min-width:0!important;width:auto!important;max-width:none!important;min-height:46px!important;padding:7px!important;gap:5px!important}:root[data-view="mobile"] .shell .game-topbar .holding-token-data{display:grid!important;grid-template-columns:auto!important;gap:2px!important}:root[data-view="mobile"] .shell .game-topbar .holding-symbol{font-size:9px!important;grid-column:auto!important}:root[data-view="mobile"] .shell .game-topbar .holding-balance{font-size:13px!important}:root[data-view="mobile"] .shell .game-topbar .holding-usd,:root[data-view="mobile"] .shell .game-topbar .mechis-source{display:none!important}:root[data-view="mobile"] .shell .game-topbar .mechis-token-icon{width:24px!important;height:24px!important}:root[data-view="mobile"] .shell .game-topbar .holding-token-art .game-icon{width:24px!important;height:24px!important}
@media(max-width:950px){:root:not([data-view="desktop"]) .shell .game-topbar .top-resources{display:flex!important;flex-wrap:nowrap!important;gap:7px!important}:root:not([data-view="desktop"]) .shell .game-topbar .top-resources .header-balance{flex:1 1 0!important;min-width:0!important;width:auto!important;max-width:none!important;min-height:46px!important;padding:7px!important;gap:5px!important}:root:not([data-view="desktop"]) .shell .game-topbar .holding-token-data{display:grid!important;grid-template-columns:auto!important;gap:2px!important}:root:not([data-view="desktop"]) .shell .game-topbar .holding-symbol{font-size:9px!important;grid-column:auto!important}:root:not([data-view="desktop"]) .shell .game-topbar .holding-balance{font-size:13px!important}:root:not([data-view="desktop"]) .shell .game-topbar .holding-usd,:root:not([data-view="desktop"]) .shell .game-topbar .mechis-source{display:none!important}:root:not([data-view="desktop"]) .shell .game-topbar .mechis-token-icon{width:24px!important;height:24px!important}:root:not([data-view="desktop"]) .shell .game-topbar .holding-token-art .game-icon{width:24px!important;height:24px!important}}
.nav-group{display:block;margin-bottom:8px}.nav-group-label{cursor:pointer;list-style-position:inside;color:#b5c8a4;padding:12px 10px;min-height:40px}.nav-group[open]>.nav-group-label{color:#d2eaa2}.sidebar .nav-group button{width:100%;padding:9px 12px;min-height:42px;gap:10px}.sidebar .nav-group .mecha-menu-icon{width:25px!important;height:25px!important}.mobile-menu-heading{grid-column:1/-1;font-size:12px;text-transform:uppercase;letter-spacing:1px;color:#c5da9c;margin:12px 0 0}.sidebar .nav-group-label:focus-visible{outline:2px solid #d4ef99}.sidebar .nav{overflow:auto}.sidebar{padding-top:20px}
:root[data-view="mobile"] .shell .topbar.game-topbar{grid-template-columns:36px minmax(0,1fr) auto;grid-template-areas:"brand location account" "resources resources resources";padding:10px 12px;gap:10px}:root[data-view="mobile"] .shell .game-topbar .mobile-brand{display:block;grid-area:brand;width:36px}:root[data-view="mobile"] .shell .game-topbar .mobile-brand img{display:block;max-width:36px;height:32px;object-fit:contain}:root[data-view="mobile"] .shell .game-topbar .header-location{gap:2px}:root[data-view="mobile"] .shell .game-topbar .breadcrumb{font-size:10px}:root[data-view="mobile"] .shell .game-topbar .account-actions{gap:4px}:root[data-view="mobile"] .shell .game-topbar .account-actions :is(a,:root[data-view="mobile"] button){padding:5px;min-width:32px;min-height:34px}:root[data-view="mobile"] .shell .game-topbar .player-presence{font-size:9px;min-height:16px}:root[data-view="mobile"] .shell .game-topbar .top-resources{width:100%}:root[data-view="mobile"] .shell .game-topbar .top-resources .header-balance{min-height:42px!important}
@media(max-width:950px){:root:not([data-view="desktop"]) .shell .topbar.game-topbar{grid-template-columns:36px minmax(0,1fr) auto;grid-template-areas:"brand location account" "resources resources resources";padding:10px 12px;gap:10px}:root:not([data-view="desktop"]) .shell .game-topbar .mobile-brand{display:block;grid-area:brand;width:36px}:root:not([data-view="desktop"]) .shell .game-topbar .mobile-brand img{display:block;max-width:36px;height:32px;object-fit:contain}:root:not([data-view="desktop"]) .shell .game-topbar .header-location{gap:2px}:root:not([data-view="desktop"]) .shell .game-topbar .breadcrumb{font-size:10px}:root:not([data-view="desktop"]) .shell .game-topbar .account-actions{gap:4px}:root:not([data-view="desktop"]) .shell .game-topbar .account-actions :is(a,:root:not([data-view="desktop"]) button){padding:5px;min-width:32px;min-height:34px}:root:not([data-view="desktop"]) .shell .game-topbar .player-presence{font-size:9px;min-height:16px}:root:not([data-view="desktop"]) .shell .game-topbar .top-resources{width:100%}:root:not([data-view="desktop"]) .shell .game-topbar .top-resources .header-balance{min-height:42px!important}}

.referral-original-summary,.referral-conditions{padding:16px 0;border-top:1px solid #40523c;margin-top:14px}.referral-original-summary summary,.referral-conditions summary,.campaign-sync-detail summary{cursor:pointer;font-weight:700;color:#d2e9a1;min-height:42px;padding:10px 0}.campaign-sync{display:block}.campaign-sync-detail{margin-top:10px}.campaign-sync-detail .campaign-sync-progress{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:8px}.campaign-sync h2{font-size:21px}.tutorial-figure picture{display:block}@media(max-width:700px){.campaign-sync-detail .campaign-sync-progress{grid-template-columns:repeat(3,minmax(0,1fr))}.campaign-sync{padding:18px}.campaign-sync h2{font-size:19px}.tutorial-figure img{height:auto;aspect-ratio:auto}}
