/* Scoped: preserves every existing utility icon, bookmark and share action. */
.community-gateway{font:inherit;flex:none}.community-dialog,.community-case{color:#f6eedf;font:15px/1.7 system-ui,sans-serif}.community-dialog{width:min(580px,calc(100% - 24px));max-height:85dvh;overflow:auto;padding:28px;border:1px solid #b49a69;border-radius:22px;background:linear-gradient(145deg,#302d48,#1b2034);box-shadow:0 24px 100px #0008}.community-dialog::backdrop{background:#100f23bb;backdrop-filter:blur(5px)}.community-dialog h2,.community-case h2{font-size:25px;line-height:1.3;margin:0 0 16px}.community-dialog h3{font-size:18px}.community-button{min-height:44px;min-width:44px;padding:9px 16px;border:1px solid #bc9d65;border-radius:30px;background:#342e46;color:#ffedc5;font:inherit;cursor:pointer}.community-button:hover{background:#504159}.community-button:disabled{opacity:.6;cursor:default}.community-button:focus-visible,.community-comments summary:focus-visible,.community-form input:focus-visible,.community-form textarea:focus-visible{outline:3px solid #ffe2a1;outline-offset:3px}.community-close{float:right;margin:0 0 12px 16px}.community-numbers{display:grid;grid-template-columns:1fr 1fr;gap:4px 20px;margin:24px 0}.community-numbers dt{color:#d5c9b4}.community-numbers dd{grid-row:2;margin:0;font-size:28px;color:#ffe0a1}.community-categories{padding:0;list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:8px}.community-categories li{padding:8px 12px;background:#ffffff08;border-radius:8px}.community-muted{opacity:.8;font-size:14px}.community-privacy{font-size:12px;line-height:1.8;opacity:.78}.community-status{font-size:14px;min-height:1.5em;color:#ffe2aa}.community-case{margin:44px 0 0;padding:28px;border-radius:20px;border:1px solid #a68b5a88;background:#242238}.community-like-row{display:flex;flex-wrap:wrap;align-items:center;gap:14px}.community-like-count{font-variant-numeric:tabular-nums}.community-comments{margin-top:24px;border-top:1px solid #a38b6155;padding-top:12px}.community-comments summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:650}.community-comment-list{margin:15px 0}.community-comment{padding:14px 0;border-bottom:1px solid #b7a08033}.community-comment p{white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0}.community-comment strong{overflow-wrap:anywhere}.community-comment time{font-size:12px}.community-form{display:grid;gap:14px;position:relative}.community-form label{display:grid;gap:5px}.community-form input,.community-form textarea{box-sizing:border-box;display:block;width:100%;min-height:44px;padding:10px 12px;font:inherit;color:#fff7e7;background:#151a2a;border:1px solid #a5937355;border-radius:8px}.community-form textarea{resize:vertical}.community-form .community-button{justify-self:start}.community-honeypot{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}.community-honeypot input{min-height:0}.community-form .community-privacy{margin:0}@media(max-width:600px){.community-dialog{padding:22px 18px}.community-case{padding:22px 16px}.community-categories{grid-template-columns:1fr}.community-numbers dd{font-size:24px}.community-gateway{font-size:13px}}@media(prefers-reduced-motion:reduce){.community-dialog::backdrop{backdrop-filter:none}}
.community-gateway{pointer-events:auto;margin-top:12px;font-size:13px;min-height:38px;padding:7px 14px;background:#30263cdd}.mobile-test header{left:calc(50% - 195px);max-width:390px;box-sizing:border-box}.mobile-test .community-dialog{max-width:calc(390px - 32px);box-sizing:border-box}@media(max-width:600px){.community-dialog{box-sizing:border-box}}

.customs-ledger{display:none;position:absolute;left:5%;top:19%;width:min(320px,34vw);max-height:65dvh;overflow:auto;box-sizing:border-box;padding:24px;color:#fff0d6;background:linear-gradient(145deg,#28233be8,#292536d6);border:1px solid #d3b57899;border-radius:20px;box-shadow:0 20px 60px #100d2744;backdrop-filter:blur(10px);z-index:3;touch-action:pan-y;font:15px/1.65 system-ui,sans-serif;scrollbar-width:thin}.customs-ledger h1{font-size:26px;font-weight:500;margin:0 0 8px}.customs-ledger .community-numbers{margin:18px 0}.customs-ledger .community-status:empty{display:none}.customs-details summary{cursor:pointer;min-height:44px;padding:10px 0;box-sizing:border-box;color:#eed09d;font-size:13px}.customs-details summary:focus-visible{outline:2px solid #ffe2a1}.customs-ledger .community-categories{grid-template-columns:1fr;font-size:13px}.customs-ledger .community-privacy{font-size:11px}.customs-ledger .community-muted{margin:0}.customs-ledger .community-numbers dd{font-size:27px}#scenic-view[data-island=customs] .customs-ledger{display:block}#scenic-view[data-island=customs] .scenic-landscape{object-fit:cover;object-position:65% center}#scenic-view[data-island=customs].arriving .customs-ledger,#scenic-view[data-island=customs].departing .customs-ledger{visibility:hidden}
@media(max-width:600px){#scenic-view[data-island=customs] .scenic-landscape{top:50px;height:calc(100dvh - 275px);min-height:230px;object-fit:cover;object-position:65% center}.customs-ledger{left:16px;right:65px;top:auto;bottom:82px;width:auto;max-height:36dvh;padding:16px 18px}.customs-ledger h1{font-size:21px}.customs-ledger .community-numbers{margin:10px 0}.customs-ledger .community-numbers dd{font-size:23px}.customs-ledger .community-muted{font-size:12px}}
.mobile-test #scenic-view[data-island=customs] .scenic-landscape{top:50px;height:calc(100dvh - 275px);min-height:230px;object-fit:cover;object-position:65% center}.mobile-test .customs-ledger{left:16px;right:65px;top:auto;bottom:82px;width:auto;max-height:36dvh;padding:16px 18px}.mobile-test .customs-ledger h1{font-size:21px}.mobile-test .customs-ledger .community-numbers{margin:10px 0}.mobile-test .customs-ledger .community-numbers dd{font-size:23px}.mobile-test .customs-ledger .community-muted{font-size:12px}
.visiting-island .community-gateway{visibility:hidden}

/* In-world starport: one scene entry, never a header duplicate or square card. */
.scenic-port.port-customs{left:auto;right:0;top:auto;bottom:10%;width:clamp(150px,16vw,200px);margin:0;padding:0;min-height:44px;border:0;background:none!important;border-radius:0;filter:drop-shadow(0 9px 20px #b795de30)}.scenic-port.port-customs img{aspect-ratio:1.5;object-fit:cover;object-position:73% center;mask-image:radial-gradient(ellipse at 61% 46%,#000 32%,#000c 46%,transparent 72%)}.scenic-port.port-customs span{font-size:12px;background:#25213eb0}.mobile-test .scenic-port.port-customs{right:50px;bottom:88px;top:auto;width:112px}.mobile-test .scenic-port.port-customs span{font-size:10px;padding:3px 6px}@media(max-width:600px){.scenic-port.port-customs{right:50px;bottom:88px;top:auto;width:112px}.scenic-port.port-customs span{font-size:10px;padding:3px 6px}}

body.mobile-test #stage{height:100svh;min-height:580px}
.stargate-officer{position:absolute;z-index:3;transform:translate(-50%,-100%);display:flex;align-items:center;justify-content:flex-end;flex-direction:column;min-width:44px;min-height:44px;padding:0;border:0;background:transparent!important;border-radius:12px;cursor:pointer}.stargate-officer[hidden]{display:none}.officer-art{display:block;background-image:url('assets/cosmic/abi-actions.webp');background-repeat:no-repeat;background-size:400% 100%;background-position:0 0;filter:drop-shadow(1px 3px 2px #25162788)}.officer-label{position:absolute;top:calc(100% + 4px);left:50%;transform:translateX(-50%);white-space:nowrap;padding:3px 8px;border-radius:12px;color:#ffe9bc;background:#25243bc9;font-size:11px;border:1px solid #d6b87d55;pointer-events:auto}.stargate-officer:hover .officer-label{background:#49405c}.resident-action{margin-top:25px}.resident-action .proposal-cta{white-space:normal;font-size:16px;gap:8px}.resident-action p{font-size:13px!important;line-height:1.7}.arriving .stargate-officer,.departing .stargate-officer{visibility:hidden}@media(max-width:600px){.officer-label{font-size:10px;padding:2px 6px}}.mobile-test .officer-label{font-size:10px;padding:2px 6px}
