/* Mobile-only presentation. The desktop broker keeps its existing DOM and styles. */
@media(min-width:0px){
  body.im-mobile{height:100dvh;overflow:hidden;overscroll-behavior:none;background:#030403}
  body.im-mobile>header,body.im-mobile>main>.intro,body.im-mobile>main>.workspace{display:none}
  body.im-mobile>main{height:0;min-height:0;padding:0;margin:0;overflow:visible}
  .im-root{--im-gold:#d9bf86;--im-text:#f2eee3;--im-muted:#b1aa96;--im-line:#d9bf8630;position:fixed;inset:0;z-index:10;color:var(--im-text);background:#030403;font:14px/1.5 Arial,sans-serif;isolation:isolate}
  .im-root *{box-sizing:border-box}.im-root [hidden]{display:none!important}
  .im-root button,.im-root a,.im-root input,.im-root textarea,.im-root select{font:inherit;-webkit-tap-highlight-color:transparent}
  .im-root button,.im-root a{touch-action:manipulation}.im-root button{min-height:48px;border:1px solid var(--im-line);background:linear-gradient(120deg,#ffffff08,#ffffff02);color:var(--im-text);border-radius:999px;padding:12px 20px;cursor:pointer}
  .im-root button:disabled{opacity:.45;cursor:wait}.im-root button:focus-visible,.im-root a:focus-visible,.im-root input:focus-visible,.im-root textarea:focus-visible,.im-star:focus-visible{outline:2px solid #e6ce99;outline-offset:4px}
  .im-root input,.im-root textarea,.im-root select{display:block;width:100%;min-height:50px;padding:12px 16px;color:#f3eddf;font-size:16px;border:1px solid #ccb78650;border-radius:16px;background:#030504b3;outline-offset:3px}
  .im-root label{display:block;color:var(--im-muted);font-size:12px;margin:16px 0 7px}.im-root textarea{min-height:92px;resize:vertical}
  .im-root h1,.im-root h2,.im-root h3{font-family:'Bodoni Moda',Georgia,serif;font-weight:400;letter-spacing:-.025em;line-height:1.15}
  .im-root h1{font-size:clamp(31px,8.8vw,46px)}.im-root h2{font-size:32px;margin:18px 0}.im-root h3{font-size:24px}.im-root p{margin:0 0 14px}
  .im-root .im-gold{background:linear-gradient(115deg,#f0deb5 0%,#c7a770 48%,#ecd5a3 100%);color:#16150f;border-color:#ebd7a660;box-shadow:inset 0 1px 0 #fff6,0 4px 24px #d2ae4c14;font-weight:500}
  .im-muted{color:var(--im-muted);font-size:12px;line-height:1.7}.im-kicker{font-size:10px;letter-spacing:.19em;text-transform:uppercase;color:var(--im-gold)}.im-error{color:#efb2a7!important}.im-wide{width:100%}.im-empty{padding:30px 12px;text-align:center;max-width:330px;margin:auto;color:#b9b29e;font-size:13px;line-height:1.8}
  .im-screen{position:absolute;inset:0;overflow:hidden;visibility:hidden;opacity:0;transform:translate3d(var(--im-from-x,0),var(--im-from-y,0),0);transition:transform .42s cubic-bezier(.22,1,.36,1),opacity .32s,visibility .42s;background:#030403}
  .im-screen.is-current{visibility:visible;opacity:1;transform:translate3d(0,0,0);z-index:2}
  .im-screen[data-screen=wallet]{--im-from-x:-16%;--im-from-y:0}.im-screen[data-screen=profile]{--im-from-x:16%;--im-from-y:0}.im-screen[data-screen=i]{--im-from-x:0;--im-from-y:-16%}.im-screen[data-screen=settings]{--im-from-x:0;--im-from-y:16%}
  .im-top{position:absolute;top:env(safe-area-inset-top);left:0;right:0;z-index:3;text-align:center;padding:10px 18px 0;pointer-events:none}.im-top button{pointer-events:auto}.im-i-link{border:0!important;background:transparent!important;font:26px Georgia,serif!important;min-height:40px!important;padding:0 18px!important;color:#e9dbb7!important;text-decoration:underline;text-underline-offset:5px}
  .im-map-name{font:11px Georgia,serif;letter-spacing:.3em;margin:2px 0 10px!important}.im-search{position:absolute;top:calc(84px + env(safe-area-inset-top));left:82px;right:82px;z-index:3}.im-search input{height:46px;min-height:46px;padding:10px 17px;border-radius:999px;font-size:16px;background:#0a0c0999;backdrop-filter:blur(16px)}
  .im-edge{position:absolute;z-index:3;display:flex;flex-direction:column;align-items:center;gap:6px;background:none!important;border:0!important;border-radius:0!important;font-size:10px!important;padding:0!important;min-width:62px;min-height:60px!important;color:#e8deca!important}
  .im-edge .im-icon{display:grid;place-items:center;width:43px;height:43px;border:1px solid #d0b27350;border-radius:50%;background:radial-gradient(circle at 50% 0,#d4b97912,#0003);color:#e0c78d}.im-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round}
  .im-wallet-edge{left:max(12px,env(safe-area-inset-left));top:calc(75px + env(safe-area-inset-top))}.im-profile-edge{right:max(12px,env(safe-area-inset-right));top:calc(75px + env(safe-area-inset-top))}.im-settings-edge{left:calc(50% - 31px);bottom:calc(18px + env(safe-area-inset-bottom))}
  .im-request-edge{right:max(20px,env(safe-area-inset-right));bottom:calc(44px + env(safe-area-inset-bottom))}.im-request-edge .im-icon{width:56px;height:56px;color:#16150e;background:linear-gradient(120deg,#f6e9c7,#c5a15b);border-color:#ebd7a660;box-shadow:0 0 30px #d8c08020}.im-request-edge .im-icon svg{width:26px;height:26px}
  .im-space{position:absolute;inset:0;background:radial-gradient(ellipse at 52% 48%,#7f652914,transparent 65%),#030504;touch-action:none}.im-space:before{content:'';position:absolute;inset:0;pointer-events:none;background-image:radial-gradient(1px 1px at 18px 48px,#ecdb9d88,transparent),radial-gradient(1px 1px at 78px 90px,#ffffff77,transparent),radial-gradient(1px 1px at 127px 18px,#ecdb9d55,transparent),radial-gradient(1px 1px at 147px 118px,#ffffff66,transparent);background-size:177px 143px;opacity:.6}.im-space svg{position:absolute;inset:0;width:100%;height:100%;overflow:hidden}.im-star{cursor:pointer;outline:none}.im-star text{fill:#f0eadb;font:13px Arial,sans-serif;paint-order:stroke;stroke:#030504;stroke-width:3px;pointer-events:none}.im-star .im-orb{stroke:#e6cf934a;stroke-width:.8;filter:drop-shadow(0 0 7px #e0c68f88)}.im-star:hover .im-orb,.im-star:focus .im-orb{stroke:#f4e3bd;filter:drop-shadow(0 0 12px #f5dca6)}.im-star .im-hit{fill:transparent;stroke:none}.im-star.is-picked .im-orb{stroke:#fff1c8;stroke-width:1.5}
  .im-map-note{position:absolute;top:45%;left:28px;right:28px;pointer-events:none;text-align:center;color:var(--im-muted)}.im-map-note h2{color:#e5d8b9;font-size:29px}.im-map-note p{font-size:12px}.im-map-status{position:absolute;left:20px;right:90px;bottom:calc(106px + env(safe-area-inset-bottom));font-size:10px;color:#b7ad9688;pointer-events:none}.im-map-filter{position:absolute;left:20px;bottom:calc(43px + env(safe-area-inset-bottom));z-index:3;max-width:110px;padding:9px 10px!important;font-size:10px!important;min-height:40px!important;background:#090d0a99!important;backdrop-filter:blur(12px)}
  .im-screen-bar{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;padding:calc(12px + env(safe-area-inset-top)) 20px 12px;background:#050705d9;backdrop-filter:blur(20px);border-bottom:1px solid var(--im-line)}.im-screen-bar p{margin:0;font:12px Georgia,serif;letter-spacing:.18em}.im-back{padding:0!important;border:0!important;background:transparent!important;min-width:48px;font-size:22px!important}.im-spacer{width:48px}.im-page{height:100%;overflow:auto;overscroll-behavior:contain;background:linear-gradient(0deg,#030504 10%,#030504bb),url('/scenes/network-distance.webp') center/cover}.im-page-content{padding:28px 24px calc(44px + env(safe-area-inset-bottom));min-height:calc(100% - 100px)}.im-page-content>.im-brand-small{height:58px;width:58px;object-fit:contain;margin-bottom:12px}.im-page-content>.im-lead{font:38px/1.2 'Bodoni Moda',Georgia,serif;letter-spacing:-.025em;margin:18px 0 24px}.im-balance{font:clamp(36px,10vw,56px)/1.15 'Bodoni Moda',Georgia,serif;color:#eddab0;word-break:break-word}.im-balance small{font:14px Arial,sans-serif}.im-card{padding:20px;border:1px solid var(--im-line);border-radius:24px;background:linear-gradient(135deg,#f5e5bc08,#0005);margin:18px 0}.im-actions{display:flex;gap:10px;margin-top:22px}.im-actions>*{flex:1}.im-pair{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:15px 0;border-bottom:1px solid #d9bf861b;font-size:12px}.im-pair span{color:var(--im-muted)}.im-pair strong{font-weight:400;color:#ead6a8;text-align:right;overflow-wrap:anywhere}.im-address{font-size:11px!important;overflow-wrap:anywhere;color:#c9c0a9}.im-connected{display:inline-flex;align-items:center;gap:8px;font-size:11px;color:#a6ad9e}.im-connected.is-connected{color:#b0e7b1}.im-connected:before{content:'';width:6px;height:6px;border-radius:50%;background:#899182}.im-connected.is-connected:before{background:#80d991;box-shadow:0 0 10px #80d99166}.im-history-list{display:grid;gap:8px}.im-history-list>button{width:100%;display:flex;flex-direction:column;align-items:flex-start;text-align:left;border-radius:18px;gap:5px}.im-history-list>button small{color:var(--im-muted);font-size:11px}.im-profile-avatar{display:grid;place-items:center;width:72px;height:72px;border:1px solid var(--im-line);border-radius:50%;color:#dfc68e;font:28px Georgia,serif;background:radial-gradient(circle at 30% 0,#d6bf8522,#050705)}.im-profile-avatar img{height:100%;width:100%;object-fit:cover;border-radius:50%}
  .im-gate{position:absolute;inset:0;z-index:40;overflow:auto;background:linear-gradient(0deg,#030403 5%,transparent 60%),url('/scenes/wallet-horizon.webp') center 38%/cover,#030403;padding:calc(26px + env(safe-area-inset-top)) 22px calc(20px + env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:center}.im-gate:before{content:'';position:absolute;inset:0;background:linear-gradient(#030403b3,#03040340 50%,#030403);z-index:-1}.im-gate-brand{text-align:center;width:100%;padding:15px 0 22px}.im-gate-brand img{width:94px;height:112px;object-fit:contain;filter:drop-shadow(0 0 18px #d6bf8540)}.im-wordmark{font:16px Georgia,serif;letter-spacing:.4em;color:#f1e9d3;margin:10px 0 22px!important}.im-gate h1{margin:4px 0 28px;text-align:center;font-size:clamp(30px,8.2vw,44px)}.im-gate-line{height:1px;width:28px;background:#d9bf85;margin:0 auto 20px}.im-entry-card{width:100%;margin-top:auto;max-width:470px;border:1px solid #cbb78955;border-radius:27px;padding:24px 20px;background:linear-gradient(130deg,#fff4d90b,#060806e6);box-shadow:0 -12px 60px #d5b2720a;backdrop-filter:blur(18px)}.im-entry-card>h2{text-align:center;font-size:27px;margin:0 0 18px}.im-gate-note{font-size:11px;color:#c0b7a3;text-align:center;margin:18px 0 0!important}.im-entry-card .invictus-account .section-line{display:none}.im-entry-card .invictus-account>button{display:flex;width:100%;margin:12px 0}.im-entry-card .invictus-account>button.im-create{background:linear-gradient(115deg,#f0deb5,#c7a770 50%,#ecd5a3);color:#16150f;border-color:#ead5a4}.im-entry-card .micro{font-size:11px;color:#bcb19a;line-height:1.7}.im-entry-card .account-field{margin:14px 0}.im-entry-card .account-field label{font-size:12px}.im-entry-card .account-form>button{display:flex;width:100%;margin:12px 0}.im-entry-card .account-form>button[type=submit],.im-entry-card .gold{background:linear-gradient(115deg,#f0deb5,#c7a770 50%,#ecd5a3);color:#16150f}.im-entry-card .bad{color:#efb2a7}.im-account>.section-line{display:none}.im-account .account-trigger{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border-radius:18px}.im-account .account-who{flex:1;overflow-wrap:anywhere}.im-account .account-who strong,.im-account .account-who small{display:block}.im-account .account-who small,.im-account .micro{color:var(--im-muted);font-size:11px}.im-account .account-avatar{display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--im-line);border-radius:50%;flex-shrink:0}.im-account .account-menu{margin:12px 0;padding:16px;border:1px solid var(--im-line);border-radius:20px;background:#0b100b}.im-account .account-menu>button{width:100%;margin:6px 0}.im-account .account-menu[hidden]{display:none}.im-account .account-form>button{margin:12px 0;width:100%}
  .im-shade{position:absolute;inset:0;z-index:19;background:#0008;backdrop-filter:blur(5px);opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}.im-shade.is-open{opacity:1;visibility:visible}
  .im-sheet{position:absolute;left:0;right:0;bottom:0;z-index:20;border:1px solid #e2c89455;border-bottom:0;border-radius:28px 28px 0 0;background:radial-gradient(ellipse at 50% -10%,#c7a56820,transparent 48%),linear-gradient(140deg,#12140f,#050805 70%);box-shadow:0 -15px 80px #0008;max-height:calc(100dvh - env(safe-area-inset-top) - 26px);padding:0 0 env(safe-area-inset-bottom);transform:translate3d(0,100%,0);visibility:hidden;transition:transform .38s cubic-bezier(.22,1,.36,1),visibility .38s;display:flex;flex-direction:column}.im-sheet.is-open{transform:translate3d(0,0,0);visibility:visible}.im-sheet.is-dragging{transition:none}.im-sheet-top{flex-shrink:0;position:relative;padding:0 20px 6px;border-top:1px solid #fff2;border-radius:28px 28px 0 0;touch-action:none}.im-handle{display:block!important;min-height:30px!important;width:100%;padding:0!important;border:0!important;background:transparent!important}.im-handle:after{content:'';width:38px;height:4px;display:block;border-radius:8px;background:#d4c19d80}.im-sheet-label{display:flex;justify-content:space-between;align-items:center}.im-sheet-label p{margin:0;font-size:11px;color:#d5c5a2;letter-spacing:.08em}.im-sheet-close{min-width:44px;min-height:44px!important;padding:0!important;border:0!important;background:transparent!important;font-size:26px!important}.im-sheet-content{overflow:auto;overscroll-behavior:contain;padding:0 24px 28px;min-height:0;scrollbar-width:none}.im-sheet-content>.im-byline{display:flex;gap:12px;align-items:center;font-size:14px;color:#ddc798}.im-mini-orb{width:36px;height:36px;border:1px solid #ebdab299;border-radius:50%;background:linear-gradient(130deg,#fff1bd22,#0009),url('/scenes/market-craters.webp') center/cover;box-shadow:inset -10px -5px 12px #0009,0 0 14px #d0b17a40;flex-shrink:0}.im-requested{font:42px/1.1 'Bodoni Moda',Georgia,serif;color:#f2e8d0;margin:8px 0 20px!important}.im-promise{padding:16px 0;border-top:1px solid var(--im-line);border-bottom:1px solid var(--im-line);margin:20px 0}.im-promise p{margin:0}.im-promise strong{font-weight:400;display:block;font-size:14px;color:#e3cca0;margin:6px 0}.im-promise .im-infinity{font-size:28px;margin-right:10px;vertical-align:middle;color:#dfbf81}.im-amount-options{display:flex;gap:8px;margin:12px 0 18px}.im-amount-options>button{flex:1;padding:8px 10px;font-size:12px;min-height:42px}.im-sheet details{border-top:1px solid var(--im-line);padding:14px 0;margin-top:18px}.im-sheet summary{font-size:12px;cursor:pointer;color:#ddcfb1}.im-receipt{font-size:10px;overflow-wrap:anywhere;color:var(--im-muted)}.im-form-status{font-size:12px;line-height:1.7;margin-top:14px!important;color:#d2c29e}.im-status:empty{display:none}
  .im-settings-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid var(--im-line)}.im-settings-row p{margin:0}.im-settings-row input[type=checkbox]{appearance:none;min-height:30px;width:52px;border-radius:30px;background:#1d231a;position:relative;flex-shrink:0;padding:0;cursor:pointer}.im-settings-row input[type=checkbox]:before{content:'';position:absolute;width:22px;height:22px;top:3px;left:3px;border-radius:50%;background:#a9a18e;transition:transform .2s}.im-settings-row input[type=checkbox]:checked{background:#d9bf85}.im-settings-row input[type=checkbox]:checked:before{background:#15160f;transform:translateX(22px)}
  .im-chat{display:flex;flex-direction:column;height:100%;background:radial-gradient(ellipse at 50% 10%,#dfbf8410,transparent 50%),#030504}.im-chat-log{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:24px 22px}.im-chat-intro{margin:15vh auto 20px;text-align:center}.im-chat-intro h2{font-size:45px}.im-chat-intro p{font-size:14px;color:#c7b899}.im-chat-message{padding:14px 16px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;font-size:14px;margin:14px 0;border-radius:20px;max-width:95%;border:1px solid var(--im-line)}.im-chat-message.is-user{margin-left:auto;background:#d9bf850b}.im-chat-message.is-assistant{margin-right:auto;border-color:transparent;background:#ffffff04}.im-chat-composer{display:flex;gap:10px;align-items:flex-end;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--im-line);background:#080a06}.im-chat-composer textarea{min-height:50px;max-height:120px;height:50px;resize:none;border-radius:24px}.im-chat-composer button{width:50px;min-width:50px;padding:0}.im-chat-note{font-size:10px;padding:0 20px;color:#b1aa96}.im-toast{position:absolute;z-index:35;bottom:calc(22px + env(safe-area-inset-bottom));left:24px;right:24px;background:#161c12ed;border:1px solid #d9bf8555;border-radius:18px;padding:14px 18px;text-align:center;font-size:12px;box-shadow:0 5px 35px #0008;pointer-events:none}
  body.im-mobile #wallet-dialog{position:fixed;width:calc(100% - 20px);max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 20px);padding:18px;border-radius:24px;z-index:100}
  body.im-mobile #wallet-dialog .wallet-top{flex-wrap:wrap;gap:10px}body.im-mobile #wallet-dialog .wallet-top>div{flex:1;min-width:180px}body.im-mobile #wallet-dialog h2{font-size:24px}body.im-mobile #wallet-dialog #broker-wallet{min-height:260px;max-height:65dvh}body.im-mobile #wallet-dialog .buttons{flex-wrap:wrap}body.im-mobile #wallet-dialog::backdrop{background:#000b;backdrop-filter:blur(8px)}
  .im-root[data-motion=off] .im-screen,.im-root[data-motion=off] .im-sheet,.im-root[data-motion=off] .im-shade{transition:none}
  /* Broker stars and balanced mobile chrome. */
  .im-top{padding-top:8px}.im-i-link{padding:0 12px!important;min-height:48px!important;line-height:1!important;text-decoration:none}.im-i-link img{display:block;height:44px;width:44px;object-fit:contain;filter:drop-shadow(0 0 12px #d6bf8530)}.im-map-name{font-size:10px;letter-spacing:.28em;margin:7px 0 0!important;color:#ece4d2}
  .im-search{top:calc(84px + env(safe-area-inset-top));left:76px;right:76px}.im-search input{font-size:16px;height:44px;min-height:44px;border-color:#d9bf8630;background:#0d100b99;box-shadow:inset 0 1px 0 #fff05}.im-search input::placeholder{color:#b3b1a4}
  .im-wallet-edge,.im-profile-edge{top:calc(82px + env(safe-area-inset-top))}.im-edge{gap:5px;font-size:10px!important}.im-edge .im-icon{width:40px;height:40px;border-color:#d9bf8638}.im-wallet-edge{left:8px}.im-profile-edge{right:8px}
  .im-space{background:radial-gradient(ellipse at 50% 45%,#9d793414,transparent 60%),#060908}.im-space:before{opacity:.22}.im-distant-star{fill:#e9d8a5}.im-star text{stroke:#060908;stroke-width:4px;stroke-linejoin:round;font-weight:500}.im-star .im-star-amount{fill:#cfbd94;font-weight:400}.im-stellar-core{filter:drop-shadow(0 0 5px #fff5c9) drop-shadow(0 0 14px #ebc576)}.im-stellar-rays{filter:drop-shadow(0 0 4px #e8c47670)}.im-star:focus .im-stellar-core,.im-star:hover .im-stellar-core,.im-star.is-picked .im-stellar-core{filter:drop-shadow(0 0 8px #fff) drop-shadow(0 0 24px #ffe1a0)}.im-star.is-picked .im-hit{stroke:#d8c48b66;stroke-width:.7;stroke-dasharray:2 8}
  .im-map-status{left:22px;right:22px;text-align:center;bottom:calc(107px + env(safe-area-inset-bottom));font-size:10px;letter-spacing:.02em;color:#b7ad96aa}.im-map-filter{left:18px;bottom:calc(34px + env(safe-area-inset-bottom));max-width:116px;padding:10px 12px!important;border-color:#d9bf8638}.im-settings-edge{bottom:calc(18px + env(safe-area-inset-bottom))}.im-request-edge{right:18px;bottom:calc(19px + env(safe-area-inset-bottom))}.im-request-edge .im-icon{width:48px;height:48px}.im-request-edge .im-icon svg{width:23px;height:23px}
  .im-sheet-content{padding-bottom:30px}.im-sheet-content h2{font-size:30px}.im-requested{font-size:clamp(27px,8.5vw,42px);overflow-wrap:anywhere}.im-mini-orb{border:0;background:radial-gradient(circle,#fff9dc 0 5%,#edd39799 6%,#d0a65533 24%,transparent 68%);box-shadow:none;border-radius:0}
  .im-root button,.im-root a{transition:transform .14s cubic-bezier(.2,.8,.2,1),box-shadow .14s,background-color .14s}.im-root button:active,.im-root button.im-pressed{transform:scale(.96);box-shadow:0 0 20px #e8cc7e24}.im-root .im-edge:active .im-icon,.im-root .im-edge.im-pressed .im-icon{background-color:#d9bf8525;border-color:#f0d79c99;box-shadow:0 0 22px #e8cc7e35}.im-root a.im-pressed{opacity:.8}
  .im-light-effect{position:absolute;pointer-events:none!important;z-index:18;contain:layout style paint}.im-tap-light{width:110px;height:110px;left:var(--im-light-x);top:var(--im-light-y);border-radius:50%;background:radial-gradient(circle,#fff6d577 0%,#ead09a3d 18%,#d9b77416 42%,transparent 70%);animation:im-tap-flash .45s ease-out both}.im-tap-light:after{content:'';position:absolute;inset:27px;border:1px solid #f5dfa05c;border-radius:50%}.im-swipe-light{inset:-60%;background:linear-gradient(90deg,transparent 30%,#e1c68c0c 44%,#fff2c42c 50%,#e1c68c0c 56%,transparent 70%);animation:im-light-sweep .48s cubic-bezier(.22,1,.36,1) both;mix-blend-mode:screen}
  @keyframes im-tap-flash{0%{opacity:0;transform:translate(-50%,-50%) scale(.2)}20%{opacity:.8}100%{opacity:0;transform:translate(-50%,-50%) scale(1.3)}}@keyframes im-light-sweep{0%{opacity:0;transform:rotate(var(--im-light-angle)) translateX(-40%)}30%{opacity:.7}100%{opacity:0;transform:rotate(var(--im-light-angle)) translateX(40%)}}
  #im-handle{font-size:clamp(27px,7vw,38px);overflow-wrap:anywhere;line-height:1.18}.im-profile-avatar{margin-bottom:20px}.im-account .account-who{min-width:0}.im-account .account-who strong{overflow-wrap:anywhere;font-size:14px}.im-account .account-trigger{flex-wrap:wrap;padding:16px;gap:10px}.im-account .google-status{font-size:11px;color:#b7c2ac}.im-account>a.outline{display:flex;align-items:center;justify-content:center;min-height:48px;border:1px solid var(--im-line);border-radius:16px;padding:12px 16px;margin:12px 0;font-size:13px;background:#ffffff04}.im-account>.micro{margin-top:12px;line-height:1.75}
  .im-root[data-motion=off] .im-light-effect{display:none}.im-root[data-motion=off] button,.im-root[data-motion=off] a{transition:none}@media(prefers-reduced-motion:reduce){.im-light-effect{display:none!important}.im-root button,.im-root a{transition:none!important}.im-root button:active,.im-root button.im-pressed{transform:none}}
  .im-screen[data-screen=feed]{--im-from-x:0;--im-from-y:0}.im-screen[data-screen=map]{--im-from-x:20%;--im-from-y:0}.im-screen[data-screen=profile]{--im-from-x:0;--im-from-y:20%}
  .im-feed-bar{position:absolute;top:0;left:0;right:0;padding:calc(8px + env(safe-area-inset-top)) 18px 8px;display:flex;align-items:center;justify-content:space-between;background:#060908;z-index:3;border-bottom:1px solid var(--im-line);min-height:64px}.im-feed-bar button{width:44px;height:44px;min-height:44px;padding:10px;background:transparent;border-color:transparent}.im-feed-bar svg{height:22px;width:22px;fill:none;stroke:var(--im-gold);stroke-width:1.4}.im-feed-bar img{height:30px;width:30px;object-fit:contain}.im-feed-brand{font:32px/1 Georgia,serif;letter-spacing:-.06em;color:#f5ead2}.im-feed-frame{position:absolute;left:0;top:calc(64px + env(safe-area-inset-top));width:100%;height:calc(100% - 140px - env(safe-area-inset-top) - env(safe-area-inset-bottom));border:0;background:#050505}.im-feed-dock{position:absolute;left:0;right:0;bottom:0;display:flex;justify-content:space-around;align-items:center;padding:14px 10px calc(14px + env(safe-area-inset-bottom));height:calc(76px + env(safe-area-inset-bottom));border-top:1px solid var(--im-line);background:#080b09;z-index:3}.im-feed-dock button{border:0;background:transparent;font-size:11px;padding:10px 12px;min-height:44px;color:#d8c7a0}.im-29-icon{font:22px Georgia,serif;color:#f1e5c5!important}
  .im-feed-dock{padding-top:9px;padding-bottom:calc(9px + env(safe-area-inset-bottom))}.im-feed-dock button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;flex:1;min-width:0;padding:5px 8px;min-height:56px;font-size:10px;line-height:1.2}.im-dock-icon{display:grid;place-items:center;height:25px;width:28px;color:#e4cd99}.im-dock-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round}.im-feed-dock button:active .im-dock-icon{color:#fff0c7;filter:drop-shadow(0 0 5px #e6cb7c88)}
  .im-feed-dock [data-go=map] .im-dock-icon svg{width:27px;height:27px;overflow:visible;stroke-width:.6}.im-twinkle-primary{fill:#e9d19c;stroke:#fff0c6;filter:drop-shadow(0 0 3px #e7c57870);transform-origin:12px 12px;animation:im-broker-twinkle 3.6s ease-in-out infinite}.im-twinkle-accent{fill:#f3dfaf;stroke:none;animation:im-broker-sparkle 3.6s ease-in-out infinite}.im-twinkle-late{animation-delay:1.8s}.im-twinkle-core{fill:#fff9df;stroke:none}@keyframes im-broker-twinkle{0%,100%{opacity:.8;transform:scale(.94)}50%{opacity:1;transform:scale(1.04);filter:drop-shadow(0 0 5px #f9d885a0)}}@keyframes im-broker-sparkle{0%,100%{opacity:.3}45%,60%{opacity:.95}}.im-root[data-motion=off] .im-dock-icon *{animation:none!important}@media(prefers-reduced-motion:reduce){.im-dock-icon *{animation:none!important}}
  /* Keep 29 inside the app and reserve a clear lane for Invictus controls. */
  .im-feed-frame{top:env(safe-area-inset-top);height:calc(100% - env(safe-area-inset-top) - 83px - env(safe-area-inset-bottom));width:100%;left:0}.im-feed-bar{display:none}.im-feed-dock{background:linear-gradient(0deg,#000b,#0005 65%,transparent);border:0;height:calc(83px + env(safe-area-inset-bottom));padding:12px 8px calc(9px + env(safe-area-inset-bottom));pointer-events:none}.im-feed-dock button{pointer-events:auto;color:#f5e9d1;text-shadow:0 1px 5px #000;min-height:56px;background:transparent;border-radius:14px}.im-feed-dock .im-dock-icon{filter:drop-shadow(0 1px 3px #000)}.im-feed-dock .im-dock-icon img{width:25px;height:25px;object-fit:contain}.im-feed-dock button:active{background:#ffffff10}
  .im-root button,.im-root a{transition:transform .16s cubic-bezier(.22,1,.36,1),box-shadow .2s ease,border-color .2s ease,background-color .2s ease,color .2s ease,opacity .2s ease;backface-visibility:hidden}.im-root button:active,.im-root button.im-pressed{transform:scale(.97)}.im-root .im-gold:active{box-shadow:inset 0 1px 0 #fff5,0 0 26px #e4c77b36}.im-screen{transition:transform .46s cubic-bezier(.22,1,.36,1),opacity .36s ease,visibility .46s}.im-sheet{transition:transform .42s cubic-bezier(.22,1,.36,1),visibility .42s}.im-sheet.is-dragging{transition:none}.im-root .im-shade{transition:opacity .3s ease,visibility .3s}body.im-mobile #wallet-dialog button,body.im-mobile #wallet-dialog a{transition:transform .16s cubic-bezier(.22,1,.36,1),background-color .2s ease,border-color .2s ease}body.im-mobile #wallet-dialog button:active{transform:scale(.97)}.im-root[data-motion=off] .im-screen,.im-root[data-motion=off] .im-sheet,.im-root[data-motion=off] .im-shade,.im-root[data-motion=off] button,.im-root[data-motion=off] a{transition:none}@media(prefers-reduced-motion:reduce){body.im-mobile #wallet-dialog button,body.im-mobile #wallet-dialog a{transition:none!important}}
  /* Persistent navigation and brief, immediate screen changes. */
  .im-feed-dock{z-index:12}.im-feed-dock button{padding:5px 3px;font-size:9px;gap:4px}.im-feed-dock .im-home-mark{font:23px/1 Georgia,serif}.im-feed-dock button.is-selected{color:#fff4d8}.im-feed-dock button.is-selected .im-dock-icon{color:#ffe9ac;filter:drop-shadow(0 0 5px #d9bf8540)}.im-back{min-width:64px;font-size:17px!important;white-space:nowrap}.im-spacer{width:64px}.im-page-content{padding-bottom:calc(124px + env(safe-area-inset-bottom))}.im-chat{padding-bottom:calc(83px + env(safe-area-inset-bottom))}.im-wallet-edge,.im-profile-edge{min-width:64px}.im-map-filter{bottom:calc(116px + env(safe-area-inset-bottom))}.im-settings-edge{bottom:calc(101px + env(safe-area-inset-bottom))}.im-request-edge{bottom:calc(102px + env(safe-area-inset-bottom))}.im-map-status{bottom:calc(188px + env(safe-area-inset-bottom))}.im-screen{transition:transform .2s cubic-bezier(.2,.8,.2,1),opacity .16s ease,visibility .2s}.im-sheet{transition:transform .24s cubic-bezier(.22,1,.36,1),visibility .24s}.im-sheet.is-dragging{transition:none}.im-swipe-light{animation-duration:.24s}.im-tap-light{animation-duration:.3s}.im-root button,.im-root a{transition:transform .1s ease,box-shadow .12s ease,background-color .12s ease,color .12s ease,border-color .12s ease,opacity .12s ease}.im-root[data-motion=off] .im-screen,.im-root[data-motion=off] .im-sheet,.im-root[data-motion=off] button,.im-root[data-motion=off] a{transition:none}
  @media(max-height:700px){.im-gate-brand{padding:0 0 10px}.im-gate-brand img{height:72px;width:64px}.im-wordmark{margin:5px 0 10px!important}.im-gate h1{font-size:29px;margin-bottom:15px}.im-gate-line{margin-bottom:12px}.im-entry-card{padding:20px 18px}.im-entry-card>h2{font-size:25px}.im-entry-card .micro{font-size:10px}}
  @media(max-width:360px){.im-search{left:76px;right:76px}.im-search input{padding:10px;font-size:14px}.im-map-name{font-size:10px}.im-sheet-content{padding:0 20px 24px}}
  @media(prefers-reduced-motion:reduce){.im-screen,.im-sheet,.im-shade{transition:none!important}}
}
/* Unified mobile shell: four destinations, one modal system, edge-to-edge 29. */
@media(min-width:0px){
  .im-root{--im-muted:#a7a59c;--im-line:#dcc79b26;background:#050706}
  .im-root .im-feed-dock{height:calc(72px + env(safe-area-inset-bottom));padding:6px 12px calc(6px + env(safe-area-inset-bottom));background:linear-gradient(0deg,#050706f5,#050706be 78%,transparent);gap:6px}
  .im-feed-dock button{font-size:10px;gap:3px;border-radius:18px;min-height:54px}.im-feed-dock button.is-selected{background:#dcc79b12}
  .im-screen-bar{border-bottom:1px solid var(--im-line)}.im-screen-bar button svg{width:22px;height:22px;fill:none;stroke:var(--im-gold);stroke-width:1.3}
  .im-page-content{max-width:600px;margin:auto;padding:20px 22px calc(100px + env(safe-area-inset-bottom))}.im-page-content>.im-brand-small{display:none}.im-lead{font-size:clamp(28px,8vw,40px)!important;overflow-wrap:anywhere}.im-card{border-radius:24px;padding:22px;background:linear-gradient(145deg,#d8c2920b,#ffffff03)}
  .im-profile-avatar{width:84px;height:84px;font-size:28px;margin:6px 0 20px}.im-page-content h3{font:600 17px/1.4 Arial,sans-serif;letter-spacing:0;margin:26px 0 14px}.im-back{font-size:14px!important}
  .im-root .im-sheet{position:fixed;inset:auto 0 0;width:100%;max-width:640px;margin:0 auto;border-radius:28px 28px 0 0;color:var(--im-text);max-height:calc(100dvh - env(safe-area-inset-top) - 20px);background:linear-gradient(155deg,#171a15,#090c09);box-shadow:0 -12px 70px #0009}
  .im-root .im-sheet:not([open]){display:none}.im-root .im-sheet[open]{visibility:visible;transform:translate3d(0,0,0);pointer-events:auto}.im-root .im-sheet{bottom:calc(72px + env(safe-area-inset-bottom));max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 92px);overflow:hidden}.im-screen.is-panel-covered{pointer-events:none}.im-root .im-feed-dock{z-index:30}.im-shade.is-open{pointer-events:auto}.im-shade{bottom:calc(72px + env(safe-area-inset-bottom))}.im-sheet-content{padding:0 22px calc(24px + env(safe-area-inset-bottom));touch-action:pan-y}.im-sheet-content form{margin:0}.im-sheet-content h2{font-size:28px}
  .is-native-feed{position:absolute;inset:0;overflow-y:auto;overscroll-behavior-y:contain;scroll-snap-type:y mandatory;scrollbar-width:none;touch-action:pan-y;background:#050706}.is-native-feed::-webkit-scrollbar{display:none}
  .is-feed-card{position:relative;height:100%;width:100%;scroll-snap-align:start;scroll-snap-stop:always;overflow:hidden;background:radial-gradient(ellipse at 50% 35%,#2b3023,#050706 70%)}
  .is-feed-media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border:0}.is-feed-card:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#0006,transparent 22%,transparent 45%,#0008 76%,#000a)}
  .is-home-bar{position:absolute;top:0;left:0;right:0;padding:calc(10px + env(safe-area-inset-top)) 16px 10px;display:flex;align-items:center;justify-content:space-between;z-index:4;pointer-events:none}.is-home-bar>*{pointer-events:auto}.is-home-bar strong{font:28px Georgia,serif;color:#fff5df;display:flex;align-items:center;gap:10px}.is-home-bar strong span{font:9px Arial,sans-serif;letter-spacing:.2em;color:#d8c69f}.is-home-bar>div{display:flex;gap:5px}.is-home-bar button{min-height:44px;min-width:44px;padding:10px;background:#0003;border-color:#fff2;backdrop-filter:blur(12px)}.is-home-bar img{width:22px;height:24px;object-fit:contain}.is-home-bar svg{width:20px;height:20px;fill:none;stroke:#e8d6ad;stroke-width:1.6}
  .is-feed-copy{position:absolute;z-index:2;left:22px;right:82px;bottom:calc(128px + env(safe-area-inset-bottom));text-shadow:0 1px 8px #0008}.is-feed-copy p{font-size:14px;line-height:1.5;margin:8px 0 0;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.is-feed-copy .is-feed-author{border:0;background:none;padding:0;min-height:44px;font-weight:600;font-size:15px;border-radius:0}.is-feed-copy small{color:#ddd4bc;font-size:10px}.is-feed-copy .is-text-post{font:32px/1.25 Georgia,serif;display:block;overflow:visible}
  .is-feed-actions{position:absolute;right:12px;bottom:calc(143px + env(safe-area-inset-bottom));z-index:3;display:flex;flex-direction:column;gap:12px}.im-root .is-social-action{padding:9px;border:0;width:46px;height:46px;background:#0002;backdrop-filter:blur(6px);border-radius:16px}.is-social-action svg{height:27px;width:27px;fill:none;stroke:#fff4df;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.is-sparkle{font:38px/1 Georgia,serif;color:#fff4df;filter:drop-shadow(0 0 5px #dfbf6655)}.is-social-action.is-liked .is-sparkle{color:#f5d88c;filter:drop-shadow(0 0 9px #efc662)}
  .is-home-tools{position:absolute;z-index:4;bottom:calc(79px + env(safe-area-inset-bottom));left:18px;right:18px;display:flex;align-items:center;justify-content:space-between;pointer-events:none;gap:8px}.is-home-tools button{pointer-events:auto;min-height:34px;padding:5px 13px;font-size:11px;background:#0004;border-color:#fff2;backdrop-filter:blur(8px)}.is-home-tools span{font-size:10px;letter-spacing:.03em;color:#d3caba;text-shadow:0 1px 6px #000}
  .is-feed-loading{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#d8c9a9;padding:32px;text-align:center}.is-media-retry{position:absolute;top:45%;left:30%;z-index:3}.is-comment{padding:14px 0;border-bottom:1px solid var(--im-line)}.is-comment button{border:0;padding:0;background:none;font-weight:600;min-height:30px}.is-comment p{margin:6px 0 0}.is-profile-photo{width:78px;height:78px;object-fit:cover;border-radius:50%}.im-sheet-content>button{margin:8px 0}.is-live-video{width:100%;max-height:50dvh;object-fit:cover;border-radius:18px;background:#000;margin:16px 0}.is-live-video:not([src]):not([data-active]){min-height:0}.is-game-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0}.im-root .is-game-card{aspect-ratio:1.2;border-radius:16px;font:30px Georgia,serif}.im-root .is-game-card:disabled{opacity:1;color:#e7cc91;background:#d3ba8120;cursor:default}
  .im-map-name{font-size:12px}.im-wallet-edge,.im-profile-edge,.im-settings-edge{display:none}.im-search{top:calc(84px + env(safe-area-inset-top));left:22px;right:22px}.im-map-filter{bottom:calc(90px + env(safe-area-inset-bottom));left:22px}.im-request-edge{bottom:calc(88px + env(safe-area-inset-bottom));right:22px}.im-request-edge .im-icon{width:54px;height:54px}.im-map-status{bottom:calc(166px + env(safe-area-inset-bottom));left:22px;font-size:11px}
}

.im-bot-link{margin-left:auto;padding:8px 12px;font-size:11px;border-radius:999px}
.im-bot-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0}
#im-bot-form label{display:grid;gap:4px;margin:8px 0;font-size:12px}
#im-bot-form label:has(input[type=checkbox]){display:flex;align-items:center;gap:8px}
.im-account-avatar{border-radius:50%;vertical-align:middle;margin-right:6px;object-fit:cover}
.im-account-current{display:grid;gap:2px;padding:8px 10px}.im-account-current small{color:#c9a94d;font-size:11px}


/* Keep the requested destination covered until account verification settles. */
.im-route-loading{display:none}
#im-root[data-session-state="checking"] .im-route-loading{position:absolute;inset:0;z-index:999;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;background:linear-gradient(#03080d44,#03080d66),url('/web/assets/ocean.webp') center/cover;color:#e5c78e;letter-spacing:.14em;font-size:13px}
.im-route-loading img{width:52px;height:52px;object-fit:contain;filter:drop-shadow(0 0 18px #e5c78e55)}
#im-root[data-session-state="checking"] #im-gate,#im-root[data-session-state="checking"] .im-screen{visibility:hidden!important;pointer-events:none!important}
#im-root .im-screen:not(.is-current){visibility:hidden!important;pointer-events:none!important;transition:none!important}
