/* AFTERMARKET's interface leaves the island visible and puts decisions first. */
:root{--am-cream:#f1eadc;--am-ink:#262d29;--am-muted:#777d73;--am-gold:#d9ad72;--am-edge:rgba(236,226,207,.18)}
[hidden]{display:none!important}button,a,input{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #e9ba78;outline-offset:4px}
.am-enhanced .hud,.am-enhanced .log,.am-enhanced .help{display:none!important}.am-enhanced .chip{top:96px}.am-enhanced .tip{bottom:66px;background:rgba(28,37,32,.92);color:#f6efdf;border:1px solid var(--am-edge);font-size:13px;padding:12px 20px;backdrop-filter:blur(16px)}
#game-shell{font-family:Inter,"Segoe UI",system-ui,sans-serif;color:var(--am-cream);position:relative;z-index:10;pointer-events:none}#game-shell button,#game-shell a,#game-shell input{pointer-events:auto}#game-shell button{font:inherit;cursor:pointer}#game-shell button:disabled{opacity:.45;cursor:wait}
.am-topbar{position:fixed;top:18px;left:22px;right:22px;min-height:64px;padding:0 18px;display:flex;align-items:center;gap:28px;background:rgba(23,33,29,.91);border:1px solid var(--am-edge);border-radius:15px;backdrop-filter:blur(20px);box-shadow:0 8px 32px #14261b22;box-sizing:border-box}
.am-brand{display:flex;gap:12px;align-items:center;color:var(--am-cream);text-decoration:none;font-size:15px;font-weight:750;letter-spacing:2.2px;white-space:nowrap}.am-brand small{display:block;font-size:8px;letter-spacing:2px;opacity:.55;margin-top:4px}.am-mark{width:34px;height:34px;border-radius:9px;border:1px solid #dcc79f66;display:grid;place-items:center;font:800 25px/1 Georgia,serif;position:relative;color:var(--am-gold)}.am-mark span{position:absolute;right:0;top:0;font:600 14px system-ui;background:#22342a}
.am-session{margin-right:auto;display:flex;gap:14px;align-items:center;font-size:10px;white-space:nowrap}.am-connection{color:#b4b9ae}.am-connection:before{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;background:#c89f70;margin-right:7px}.am-connection.online:before{background:#abc49a}.am-mainnet{font-size:8px;letter-spacing:1.4px;border:1px solid #9cb6a33d;padding:5px 7px;border-radius:4px;color:#c7d0c1}
.am-metrics{display:flex;gap:28px}.am-metrics span{min-width:60px}.am-metrics small{display:block;font-size:8px;letter-spacing:1.5px;color:#a9b2a5;margin-bottom:5px}.am-metrics b{font-size:16px;font-weight:550;font-variant-numeric:tabular-nums}.am-icon-button{border:0;background:transparent;color:var(--am-cream);font-size:27px!important;min-width:42px;min-height:42px}
.am-mission{position:fixed;left:22px;top:104px;width:264px;padding:22px 22px 15px;border-radius:15px;background:rgba(26,36,29,.88);border:1px solid var(--am-edge);backdrop-filter:blur(18px);box-sizing:border-box}.am-eyebrow{font-size:9px;font-weight:650;letter-spacing:1.8px;color:var(--am-gold);line-height:1.6}.am-eyebrow span{float:right;color:#9ba693;font-size:9px;letter-spacing:1px}.am-mission h2{font:500 26px/1.08 Georgia,"Times New Roman",serif;letter-spacing:-.5px;margin:16px 0 12px}.am-mission p{font-size:12px;line-height:1.7;color:#c1c7b7;margin:0 0 16px}.am-link{background:none;border:0;color:var(--am-gold);font-size:11px!important;padding:7px 0;text-align:left}.am-link span{margin-left:24px}.am-mission-footer{display:flex;justify-content:space-between;gap:8px;border-top:1px solid var(--am-edge);padding-top:13px;margin-top:15px;font-size:9px;color:#b1b8aa}.am-mission-footer span:last-child{color:#8f9e86;font-size:8px}
.am-footer{position:fixed;bottom:15px;left:22px;right:22px;display:flex;justify-content:space-between;gap:24px;color:#eeeee0;text-shadow:0 1px 4px #102019;font-size:10px;line-height:1.6}.am-footer>span{max-width:48%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.am-footer>div{opacity:.85;font-size:9px;display:flex;align-items:center;gap:8px}kbd{background:rgba(28,37,30,.8);border:1px solid #d6dec344;border-radius:4px;padding:2px 5px;font:9px "Segoe UI",sans-serif}
.am-drawer{position:fixed;right:22px;top:98px;bottom:55px;width:min(354px,calc(100vw - 32px));box-sizing:border-box;padding:26px;background:rgba(23,32,27,.97);border:1px solid var(--am-edge);border-radius:16px;overflow:auto;pointer-events:auto;touch-action:pan-y;overscroll-behavior:contain;backdrop-filter:blur(24px);box-shadow:0 20px 70px #07160d66}.am-drawer-head{display:flex;align-items:flex-start;justify-content:space-between}.am-drawer h2{font:500 28px/1.1 Georgia,serif;margin:12px 0}.am-muted{color:#a7b19e;font-size:11px;line-height:1.7}.am-quote{padding:17px 0;border-bottom:1px solid var(--am-edge)}.am-quote>div{display:flex;justify-content:space-between;gap:12px;font-size:11px}.am-quote b{white-space:nowrap;font-size:14px;font-weight:500}.am-quote small{font-size:15px;margin-left:6px;color:#b2cba1}.am-quote small.rising{color:#e0af76}.am-quote p{font-size:10px;line-height:1.6;color:#a3ad9a;margin:8px 0 0}.am-quote button{margin-top:10px;padding:9px 12px;border:1px solid #dcc39c55;border-radius:7px;background:transparent;color:var(--am-gold);font-size:10px!important}
.am-demo,.am-chain{border:1px solid var(--am-edge);border-radius:11px;padding:19px;margin-top:24px;background:#cbb88d07}.am-demo h3{font:500 22px Georgia,serif;margin:12px 0}.am-demo p,.am-chain p{font-size:10px;line-height:1.7;color:#a8b29f}.am-demo button{width:100%;border:0;background:#dcb783;color:#27332b;border-radius:7px;padding:12px 10px;font-size:11px!important;font-weight:600!important;margin:7px 0 10px}.am-demo>small{font-size:9px;color:#949f8a}.am-chain code{display:block;word-break:break-all;font:10px/1.7 monospace;color:#c1cbb3;margin-top:10px}.am-receipt a{color:#d9b987;text-decoration:none}
#am-toast{position:fixed;bottom:65px;left:50%;max-width:min(480px,80vw);padding:13px 20px;border-radius:10px;background:#f0e8d8;color:#29372b;font-size:12px;line-height:1.6;box-shadow:0 8px 28px #10201640;transform:translate(-50%,16px);opacity:0;transition:transform .2s,opacity .2s;text-align:center;z-index:30}#am-toast.visible{opacity:1;transform:translate(-50%,0)}
.am-welcome{position:fixed;inset:0;display:flex;align-items:center;justify-content:space-between;padding:100px max(6vw,28px) 55px;gap:40px;box-sizing:border-box;background:linear-gradient(90deg,rgba(15,28,23,.94),rgba(18,31,25,.7) 65%,rgba(14,27,22,.82));pointer-events:auto;backdrop-filter:blur(3px);z-index:25}.am-welcome-copy{max-width:670px}.am-welcome-copy h1{font:500 clamp(44px,5.8vw,86px)/1.04 Georgia,"Times New Roman",serif;letter-spacing:-2.5px;margin:25px 0;color:#f1ecdf}.am-welcome-copy h1 em{color:#d8b486;font-style:italic}.am-welcome-copy>p{max-width:410px;color:#bac4b2;font-size:13px;line-height:1.9}.am-welcome-tags{display:flex;flex-wrap:wrap;gap:16px;margin-top:32px;font-size:9px;letter-spacing:.3px;color:#a7b49e}.am-welcome-tags span:before{content:"↗";color:#d8b486;margin-right:7px}
.am-login{width:330px;flex:none;border:1px solid #d0d3ba25;border-radius:20px;padding:32px;box-sizing:border-box;background:#f5eedf0a;box-shadow:0 30px 80px #08160d30;backdrop-filter:blur(14px)}.am-login h2{font:500 35px/1.12 Georgia,serif;letter-spacing:-.7px;margin:18px 0}.am-login p{font-size:12px;line-height:1.8;color:#b7c2ae;margin-bottom:26px}.am-login label{font-size:10px;color:#c6d0bb;display:block;margin:0 0 9px}.am-login input{box-sizing:border-box;width:100%;border:1px solid #c7d2b533;border-radius:8px;background:#0c1d164d;color:#f1eadb;padding:14px 13px;font-size:12px;user-select:text}.am-login input::placeholder{color:#7c8c76}.am-login button{width:100%;padding:14px 12px;background:#d9b787;color:#28342a;border:0;border-radius:8px;margin-top:12px;font-size:11px!important;font-weight:650!important}.am-login button.am-secondary{background:transparent;border:1px solid #bcc6b255;color:#dfdfcb}.am-login>small{display:block;font-size:9px;line-height:1.8;color:#8d9c82;margin-top:18px}#am-login-status{font-size:10px;color:#dfc69b;line-height:1.7;margin-top:15px}
.am-welcoming .am-mission,.am-welcoming .am-map-panel,.am-welcoming .am-camera,.am-welcoming .am-footer,.am-welcoming #pbtn,.am-welcoming .tip,.am-welcoming .chip,.am-welcoming .abtn,.am-welcoming .joy{display:none!important}.am-welcoming .am-topbar{z-index:26;background:transparent;border-color:transparent;box-shadow:none;backdrop-filter:none}.am-welcoming .am-metrics,.am-welcoming #am-menu{visibility:hidden}
/* A miniature physical handset: titanium rim, black glass, island, camera and wallpaper. */
@media(max-width:1050px){.am-topbar{gap:18px}.am-session{gap:8px}.am-metrics{gap:18px}.am-mainnet{display:none}.am-welcome{gap:26px;padding-left:5vw;padding-right:5vw}.am-login{width:300px;padding:26px}.am-mission{width:235px;padding:19px}.am-mission h2{font-size:23px}}
@media(max-width:760px){.am-topbar{left:10px;right:10px;top:10px;padding:0 10px;gap:12px;min-height:59px}.am-brand{font-size:11px;letter-spacing:1.5px;gap:8px}.am-brand small{font-size:6px;letter-spacing:1.2px}.am-mark{width:28px;height:28px;font-size:20px}.am-session{position:absolute;top:67px;right:3px;font-size:9px}.am-metrics{margin-left:auto;gap:14px}.am-metrics span{min-width:0}.am-metrics span:nth-child(2){display:none}.am-metrics small{font-size:6px;letter-spacing:.8px}.am-metrics b{font-size:13px}.am-icon-button{min-width:28px}.am-mission{top:90px;left:10px;width:205px;padding:15px}.am-mission h2{font-size:22px;margin:12px 0 9px}.am-mission p{font-size:10px;line-height:1.6}.am-mission-footer{font-size:8px;display:block}.am-mission-footer span:last-child{float:right;font-size:7px}.am-eyebrow{font-size:8px;letter-spacing:1.2px}.am-footer{left:10px;right:10px;bottom:12px;font-size:9px}.am-footer>div{display:none}.am-footer>span{max-width:100%}.am-enhanced .tip{bottom:170px;font-size:11px;max-width:55vw}.am-enhanced .chip{top:76px;font-size:10px;max-width:50vw;left:auto;right:10px;transform:none}.am-drawer{right:8px;top:82px;bottom:42px;padding:22px}.am-welcome{display:block;overflow:auto;padding:100px 24px 32px;touch-action:pan-y}.am-welcome-copy h1{font-size:45px;letter-spacing:-1.5px;margin:20px 0}.am-welcome-copy>p{font-size:11px;max-width:320px}.am-welcome-tags{margin-top:18px;font-size:8px;gap:11px}.am-login{width:100%;max-width:380px;margin-top:30px;padding:24px}.am-login h2{font-size:28px}.am-login h2 br{display:none}.am-login p{margin-bottom:16px;font-size:11px}.am-welcoming .am-session{top:19px;right:10px}.am-welcoming .am-metrics{display:none}}
@media(max-height:530px) and (orientation:landscape){.am-mission{width:185px;top:82px;padding:12px}.am-mission p,.am-mission-footer{display:none}.am-mission h2{font-size:20px}.am-enhanced .tip{bottom:20px}.am-welcome{display:flex;align-items:center;padding:80px 35px 24px}.am-welcome-copy h1{font-size:35px}.am-welcome-copy>p,.am-welcome-tags{display:none}.am-login{width:270px;margin:0;padding:18px}.am-login h2{font-size:24px;margin:9px 0}.am-login p,.am-login>small{display:none}.am-drawer{top:78px;bottom:16px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.am-topbar,.am-mission,.am-drawer,.am-login,.am-welcome{backdrop-filter:none}

/* Map is opened from the phone. No permanent overlay covers the movement pad. */
.am-map-panel{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:min(600px,calc(100vw - 28px));max-height:calc(100dvh - 32px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));overflow:auto;border:1px solid #acb39b55;border-radius:18px;background:#24372f;box-shadow:0 20px 70px #07140e77;pointer-events:auto;touch-action:pan-y;overscroll-behavior:contain;z-index:20;box-sizing:border-box}
.am-map-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px 12px}.am-map-head h2{font:500 27px/1.1 Georgia,serif;margin:5px 0 0}.am-map-head .am-icon-button{min-width:44px;min-height:44px;border-radius:10px;background:#15281d55}
#am-map{width:min(100%,71.7dvh);height:auto;aspect-ratio:44/27;margin:0 auto;background:#153440;cursor:crosshair;touch-action:none}
.am-landmarks{display:flex;gap:7px;padding:12px 16px;flex-wrap:wrap}.am-landmarks button,.am-map-foot button{min-height:44px;padding:8px 12px;border:1px solid #b6bfa351;border-radius:9px;color:#f1eadc;background:#1d3028;font-size:12px!important}.am-landmarks button:hover{background:#405441}
.am-map-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--am-edge);padding:12px 16px}.am-map-foot b,.am-map-foot span{display:block}.am-map-foot b{font-size:12px;font-weight:550}.am-map-foot span{font-size:11px;color:#bcc9ad;margin-top:5px}.am-map-foot button{flex:none}
.am-camera{position:fixed;right:calc(18px + env(safe-area-inset-right,0px));bottom:calc(118px + env(safe-area-inset-bottom,0px));pointer-events:auto;z-index:12;color:var(--am-cream)}
.am-camera-quick{display:flex;gap:2px;background:#23372fee;border:1px solid var(--am-edge);border-radius:11px;padding:3px}.am-camera button{min-width:44px;min-height:44px;border:0;border-radius:8px;color:var(--am-cream);background:transparent;font-size:22px!important;touch-action:manipulation}.am-camera button:hover,.am-camera button:active{background:#57705366}
.am-camera details{position:relative}.am-camera summary{padding:6px 8px;min-height:26px;box-sizing:border-box;text-align:center;font-size:11px;cursor:pointer;list-style:none;background:#23372fee;border-radius:0 0 9px 9px}.am-camera summary::-webkit-details-marker{display:none}.am-camera summary span{margin-left:5px}.am-camera summary:focus-visible{outline:3px solid var(--am-gold)}
.am-camera-options{position:absolute;right:calc(100% + 8px);bottom:0;width:218px;display:grid;grid-template-columns:1fr 1fr;gap:5px;background:#23372f;border:1px solid var(--am-edge);border-radius:12px;padding:10px;box-shadow:0 12px 30px #14201666}.am-camera-options button{font-size:12px!important;border:1px solid var(--am-edge)}.am-camera-options small{grid-column:1/-1;font-size:10px;line-height:1.7;color:#bdc9b1;padding:4px}
.am-enhanced #phone .ph-body{border-radius:36px;padding:8px}.am-enhanced #phone .ph-screen{border-radius:29px}.am-enhanced #phone .ph-island{width:78px;margin-left:-39px;height:22px;top:9px}.am-enhanced #phone .ph-status{font-size:12px;padding:14px 17px 0;height:42px}.am-enhanced #phone .ph-status span:last-child{gap:3px}.am-enhanced #phone .bat{width:21px}
.am-enhanced #phone .ph-home{padding:53px 12px 22px;overflow-y:auto;box-sizing:border-box;touch-action:pan-y;overscroll-behavior:contain}.am-enhanced #phone .wgt{padding:12px;margin-bottom:16px}.am-enhanced #phone .wgt b{font-size:27px}.am-enhanced #phone .grid{gap:14px 4px}.am-enhanced #phone .ico i{width:44px;height:44px;border-radius:12px}.am-enhanced #phone .ico{font-size:10px}.am-enhanced #phone .ico i svg{width:26px;height:26px}
.am-enhanced #phone .dock{position:relative;left:auto;right:auto;bottom:auto;height:64px;margin-top:20px;border-radius:22px}.am-enhanced #phone .ph-nav{padding:44px 8px 6px}.am-enhanced #phone .ph-nav .bk,.am-enhanced #phone .ph-nav .sp{min-width:59px}.am-enhanced #phone .ph-nav .tt{font-size:14px}.am-enhanced #phone button{min-height:44px}.am-enhanced #phone .ph-scroll{font-size:13px;padding:10px 10px 42px}.am-enhanced #phone .row{font-size:13px}.am-enhanced #phone .ph-hi{pointer-events:auto}.am-enhanced #phone .ph-hi s{pointer-events:none}
.phone-open .am-camera{display:none}.am-footer{right:180px}.am-enhanced .tip{pointer-events:none}
@media(max-width:760px){
  #phone{right:calc(12px + env(safe-area-inset-right,0px));bottom:calc(12px + env(safe-area-inset-bottom,0px))}
  #pbtn{right:calc(24px + env(safe-area-inset-right,0px));bottom:calc(24px + env(safe-area-inset-bottom,0px))}
  .am-camera{right:calc(12px + env(safe-area-inset-right,0px));bottom:calc(238px + env(safe-area-inset-bottom,0px))}
  .am-camera-quick{padding:2px;gap:0}.am-camera button{min-width:44px;min-height:44px}.am-camera-options{width:min(196px,calc(100vw - 180px));padding:6px}
  .am-map-head{padding:12px 14px 10px}.am-map-head h2{font-size:23px}.am-landmarks{padding:10px;gap:6px}.am-landmarks button{padding:6px 9px;font-size:11px!important}.am-map-foot{padding:10px}.am-map-foot span{max-width:175px}
  body.touch .abtn.big{bottom:calc(120px + env(safe-area-inset-bottom,0px))}body.touch .abtn.small{bottom:calc(120px + env(safe-area-inset-bottom,0px))}
  .am-mission{width:180px;padding:12px}.am-mission h2{font-size:20px;margin:8px 0}.am-mission p{display:none}.am-mission-footer{margin-top:7px;padding-top:8px}.am-enhanced .chip{max-width:44vw}.am-enhanced .tip{bottom:calc(245px + env(safe-area-inset-bottom,0px));max-width:45vw;font-size:10px;padding:8px 10px}
  .am-footer{right:82px}.am-footer>span{font-size:8px}
}
@media(max-height:530px) and (orientation:landscape){
  .am-camera{bottom:calc(218px + env(safe-area-inset-bottom,0px))}.am-map-panel{width:min(560px,calc(100vw - 30px));max-height:calc(100dvh - 20px)}#am-map{width:min(100%,52.15dvh)}.am-map-head{padding:8px 12px}.am-map-head h2{font-size:20px}.am-map-head .am-eyebrow{display:none}.am-landmarks{padding:6px;gap:4px}.am-map-foot{padding:6px 10px}.am-map-foot span{font-size:10px}
  .am-enhanced .tip{bottom:108px}.am-mission{max-width:170px}.am-mission-footer{display:none}
}

@media(max-width:760px) and (orientation:portrait){.am-map-panel{top:calc(50% - 60px);max-height:calc(100dvh - 200px)}}
.am-map-head{position:sticky;top:0;z-index:1;background:#24372f}
@media(max-width:360px){body.touch .joy{width:106px;height:106px;left:14px}body.touch .joy i{width:48px;height:48px;margin:-24px}body.touch .abtn.big{width:76px;height:76px;right:16px}body.touch .abtn.small{width:56px;height:56px;right:104px}}

@media(max-height:530px) and (orientation:landscape){.am-enhanced #phone .ph-home{padding-top:47px}.am-enhanced #phone .wgt{padding:8px 10px;margin-bottom:10px}.am-enhanced #phone .wgt b{font-size:23px}.am-enhanced #phone .wgt em,.am-enhanced #phone .wgt small{display:none}}

.am-chain select{width:100%;min-height:44px;margin:8px 0;border:1px solid var(--am-edge);border-radius:7px;background:#1c3027;color:var(--am-cream);padding:8px;font:12px system-ui}.am-chain label{display:block;margin-top:18px;font-size:11px}.am-chain button{min-height:44px;border:1px solid var(--am-edge);border-radius:7px;background:#304d3a;color:var(--am-cream);padding:8px 12px;font-size:11px!important;margin:10px 0}.am-chain table{width:100%;font-size:10px;border-collapse:collapse;text-align:left}.am-chain th,.am-chain td{padding:8px 3px;border-bottom:1px solid var(--am-edge)}.am-chain td:last-child{text-align:right;font-variant-numeric:tabular-nums}.am-chain small{display:block;font-size:10px;line-height:1.7;color:#a8b29f;margin-top:12px}.am-chain code{user-select:text;pointer-events:auto}.am-chain label,.am-chain select{pointer-events:auto}

.am-economy-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:18px 0 12px}.am-economy-stats span{padding:10px 6px;border:1px solid var(--am-edge);border-radius:8px}.am-economy-stats small{display:block;font-size:7px;letter-spacing:.6px;color:#a8b29f}.am-economy-stats b{display:block;font-size:14px;font-weight:500;margin-top:6px}#am-price-history{width:100%;height:auto;border-radius:8px;margin:4px 0 8px}.am-merchant-state{display:block;font-size:9px;color:#c9bd9a;margin-top:8px;line-height:1.7}.am-economic-events{font-size:10px;line-height:1.7;color:#c3cbb7}.am-economic-events p{border-left:2px solid #dcb783;padding-left:10px}

body.market-open .am-camera,body.market-open #pbtn,body.market-open .abtn,body.market-open .joy,body.market-open .setp,body.market-open .tip{display:none!important}

.am-drawer-head{position:sticky;top:0;z-index:2;background:#1c2d24;padding:6px 0 10px}.am-drawer-head>.am-icon-button{min-width:44px;min-height:44px}
