/* Cross-page refinements of the existing shell, not a replacement theme. */
:root{--ui-paper:#fbfcf8;--ui-ink:#25344b;--ui-dim:#596674;--ui-action:#236d58;--ui-focus:#936900;--ui-line:#d4dcd6}
html{scrollbar-color:#8d9e96 #f0f3ed;scrollbar-width:thin}::selection{background:#cbe8dc;color:#203c33}
button,a,input,select,summary{-webkit-tap-highlight-color:transparent}a{text-underline-offset:4px}input,select{caret-color:var(--ui-action)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--ui-focus);outline-offset:3px}
button:disabled{cursor:not-allowed}button,summary{touch-action:manipulation}button[aria-busy=true]{cursor:progress}
nav .links a{min-height:44px;color:#4c5b53;isolation:isolate}nav .links a.active::before{animation:none;box-shadow:none;background:#d9ecdf;z-index:-1}nav .links a.active::after{display:none}
.nav-mascot--arrow svg{animation:none}.modal-card{padding:28px;scrollbar-gutter:stable}.modal-card p{overflow-wrap:anywhere}.modal-card input{min-height:44px}.creature-close,.close-sheet{min-width:44px;min-height:44px}
.login-provider-status{font-size:12px;line-height:1.7;color:var(--ui-dim);margin:10px 0 16px;min-height:20px}#googleIdentityButton{display:flex;justify-content:center;margin-top:12px}#googleIdentityButton:empty{display:none}
#loginModal .wallets{gap:8px}#loginModal .wallet{min-height:46px}.login-recent-item{min-height:40px}#loginModal .or-divider{margin:20px 0 12px}
.fusion-tools{max-width:720px;margin:24px auto;text-align:left;border-top:1px solid var(--ui-line);padding-top:12px}.fusion-tools summary{cursor:pointer;min-height:44px;font-weight:700;display:flex;align-items:center}.fusion-tools p{font-size:13px;line-height:1.8;color:var(--ui-dim)}.fusion-fields{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.fusion-fields label{display:grid;gap:6px;flex:1;min-width:120px;font-size:12px}.fusion-fields select{min-height:44px;padding:8px;border:1px solid var(--ui-line);border-radius:8px;background:var(--ui-paper);color:var(--ui-ink)}.fusion-fields button{min-height:44px;padding:10px 14px;background:var(--ui-action);color:white;border:0;border-radius:8px}
footer a{display:inline-flex;align-items:center;min-height:44px;margin:0 12px;color:inherit}
body[data-room] .sky-status{z-index:11;color:var(--ui-ink);background:var(--ui-paper);padding:6px 10px;border-radius:10px;font-size:11px}body[data-room] .sky-status button{color:var(--ui-ink);border-color:var(--ui-line);min-height:36px}
body[data-room] .event-notice{max-width:min(420px,calc(100vw - 48px));top:170px;line-height:1.65}
.people-row{overflow-wrap:anywhere;min-width:0}.player-card strong{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.player-card span{max-width:180px;overflow-wrap:anywhere}.places-panel summary:after,.people-panel summary:after{content:'+';font-size:16px;font-weight:400}.places-panel[open] summary:after,.people-panel[open] summary:after{content:'−'}
body[data-room=moon-cafe] .event-notice{top:auto;bottom:200px;height:max-content}body[data-room] summary>span[aria-hidden=true]{display:none}
.chat-dock summary{min-height:36px}.chat-dock input{min-height:44px}.chat-dock details[open]{box-shadow:0 -8px 24px #14202e14}.land-tools small{line-height:1.6;font-size:11px}.arrival-panel small{font-size:12px}.arrival-panel{max-height:calc(100dvh - 180px);overflow:auto}
.topbar{left:50%;right:auto;transform:translateX(-50%);width:max-content;max-width:calc(100% - 24px);background:var(--ui-paper);border-radius:12px;gap:12px;box-shadow:0 8px 24px #101e2926}.topbar .brand b{color:#24694f}.topbar a,.topbar button{min-height:44px;border-radius:8px;font-family:inherit;font-size:12px}.topbar .district{font-family:inherit;font-size:11px}
.atlas-panel,.enter-card{background:var(--ui-paper);border-radius:12px;padding:24px}.atlas-panel h1,.atlas-panel h2,.moon-destination strong{font-family:inherit;letter-spacing:0}.atlas-panel button,.enter-actions button,.enter-actions a{border-radius:8px}.atlas-panel p,.enter p{font-size:13px;line-height:1.75}.atlas-city-list button{min-height:44px}.atlas-heading small{display:none}.atlas-panel small{font-family:inherit;letter-spacing:0}.atlas-heading h2{margin-top:0}.atlas-status{line-height:1.65}.enter-card{bottom:auto;max-height:calc(100dvh - 140px)}.enter-actions{position:sticky;bottom:-24px;background:var(--ui-paper);padding-bottom:12px}.session-badge{font:12px/1.6 inherit}.pick strong{overflow-wrap:anywhere}.city-pin{font-family:inherit}.atlas-credit{line-height:1.6}
@media(max-width:760px){
  .modal{padding:12px}.modal-card{padding:22px 18px;max-height:calc(100dvh - 24px)}
  body[data-room] .sky-status{left:10px;top:88px;max-width:calc(100% - 20px);font-size:10px;padding:4px 8px}
  body[data-room] .event-notice{top:184px;max-width:calc(100% - 24px)}
  body[data-room=moon-cafe] .event-notice{top:auto;bottom:230px}
  .places-panel,.people-panel{top:140px;width:calc(50% - 15px);max-height:calc(100dvh - 355px)}
  .town-bottom{bottom:116px;gap:8px;align-items:center}.player-card{min-width:0;max-width:48%}.player-card canvas{width:28px;height:28px;flex:none}.player-card div{min-width:0}.player-card strong{max-width:75px}.player-card span{font-size:10px;max-width:80px}.player-card button{min-height:44px;padding:4px}.view-tools{gap:3px}.view-tools button{min-width:38px;min-height:44px;padding:5px}
  .land-tools{bottom:176px;max-width:calc(100% - 20px)}.land-tools small{display:none}.land-tools button{min-height:44px}.chat-dock{bottom:max(12px,env(safe-area-inset-bottom));width:calc(100% - 20px)}
  .exit-cafe{bottom:176px}.arrival-panel{max-height:45dvh;padding:18px}.arrival-panel small{font-size:11px}.arrival-actions a{display:flex;align-items:center;min-height:44px}
  .topbar{width:max-content;max-width:calc(100% - 20px);left:50%;right:auto;padding:6px 8px;gap:6px}.topbar .district{display:none}.topbar a,.topbar button{padding:8px;font-size:11px}.atlas-panel,.enter-card{padding:18px;max-height:40dvh;bottom:34px}.enter-actions{bottom:-18px}.atlas-credit{font-size:9px;max-width:calc(100% - 24px)}
  .fusion-fields{display:grid;grid-template-columns:1fr 1fr}.fusion-fields button{grid-column:1/-1}
}
@media(max-width:360px){.player-card canvas{display:none}.view-tools button{min-width:34px}.player-card{max-width:45%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
