/* A separately mounted mobile presentation; desktop rules are untouched. */
body.astralis-hand{margin:0!important;overflow:hidden!important;overscroll-behavior:none;background:#100b16!important}
body.astralis-hand #astralis-hand{--rose:#f49cc9;--gold:#dfc38d;--line:#705367;--ink:#f8edf5;position:fixed;top:var(--hand-top,0);left:0;width:100%;height:var(--hand-height,100dvh);z-index:30;display:flex;flex-direction:column;gap:0;padding:env(safe-area-inset-top) max(10px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(10px,env(safe-area-inset-left));overflow:hidden;background:radial-gradient(ellipse at 25% 0,#342038,transparent 65%),#100b16;color:var(--ink);font:0.875rem/1.4 system-ui,sans-serif;box-sizing:border-box;isolation:isolate}
#astralis-hand *,#astralis-hand *:before,#astralis-hand *:after{box-sizing:border-box}
#astralis-hand [hidden]{display:none!important}
#astralis-hand h1,#astralis-hand h2,#astralis-hand p{margin:0}
#astralis-hand button,#astralis-hand input,#astralis-hand select,#astralis-hand textarea{font:inherit;touch-action:manipulation;max-width:100%}
#astralis-hand button{min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:#231527;color:var(--ink);cursor:pointer;white-space:normal;line-height:1.25;transition:background .12s;box-shadow:none;letter-spacing:normal;text-transform:none}
#astralis-hand button:active{background:#784261;transform:translateY(1px)}
#astralis-hand button:disabled{opacity:.45;cursor:default}
#astralis-hand :is(button,input,select,textarea):focus-visible{outline:2px solid var(--rose);outline-offset:-3px}
#astralis-hand :is(input,select,textarea){background:#180f1e;color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:10px;min-height:44px;font-size:1rem}
#astralis-hand .hand-primary{background:#743452;border-color:#dc84b5;color:white}
#astralis-hand .hand-muted{color:#baaabd;font-size:.85em}
#astralis-hand .hand-top{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;min-height:50px}
#astralis-hand .hand-identity{display:flex;flex-direction:column;align-items:flex-start;border:0;background:none;padding:4px 0;min-width:0}
#astralis-hand .hand-brand{font-size:0.5625rem;letter-spacing:.16em;color:var(--gold)}
#astralis-hand #hand-name{font-size:1rem;font-weight:650;max-width:220px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
#astralis-hand .hand-connection{font-size:0.625rem;color:#e8c48f;text-align:right}
#astralis-hand .hand-connection[data-connected=true]{color:#94dcbd}
#astralis-hand .hand-vitals{flex:none;padding:0 0 7px;border-bottom:1px solid #b18d6d38;white-space:normal;font-size:0.6875rem;font-variant-numeric:tabular-nums;color:#decddd}
#astralis-hand .hand-content{min-height:0;flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative}
#astralis-hand .hand-view{min-height:0;min-width:0;flex:1}
#astralis-hand .hand-view[data-hand-view=world]{display:flex;flex-direction:column;overflow:auto;scrollbar-width:thin}
#astralis-hand .hand-scroll{overflow:auto;overscroll-behavior:contain;padding:8px 0;scrollbar-width:thin}
#astralis-hand .hand-scene{flex:1 1 140px;min-height:54px;max-height:30vh;overflow:hidden;margin:8px 0;border-radius:13px;background:#1e1628;position:relative}
#astralis-hand #room-scene{margin:0;border:0;background:none;width:100%;height:100%;padding:0}
#astralis-hand #room-scene>summary{display:none}
#astralis-hand .room-scene-frame{width:100%;height:100%;max-height:none;aspect-ratio:auto;border:0;border-radius:0;padding:0}
#astralis-hand #room-scene img{width:100%;height:100%;max-height:none;object-fit:cover;image-rendering:pixelated}
#astralis-hand #room-scene .room-scene-caption{display:none}
#astralis-hand .hand-place{flex:none}
#astralis-hand .hand-eyebrow{font-size:0.625rem;color:var(--gold);letter-spacing:.12em;text-transform:uppercase}
#astralis-hand #hand-place-name{font:600 clamp(20px,5.8vw,28px)/1.15 Georgia,serif;color:#f7e7ce;margin:3px 0 6px}
#astralis-hand .hand-prose{font-size:0.8125rem;line-height:1.45;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;color:#d9cddc}
#astralis-hand .hand-text-button{background:none;border:0;color:var(--rose);font-size:0.75rem;padding:5px 0;min-height:32px;text-align:left}
#astralis-hand .hand-section-heading{display:flex;justify-content:space-between;align-items:center;font-size:0.75rem;flex:none}
#astralis-hand .hand-nearby{display:grid;grid-template-columns:1fr 1fr;gap:5px;flex:none}
#astralis-hand .hand-subject{display:flex;align-items:center;gap:7px;text-align:left;min-width:0;font-size:0.75rem;padding:6px 8px}
#astralis-hand .hand-subject>span:last-child{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
#astralis-hand .hand-subject-icon{color:var(--gold);font-size:1.25rem;flex:none}
#astralis-hand .hand-recent{flex:none;min-height:38px;border:0;background:none;color:#c5b5c8;text-align:left;font-size:0.6875rem;white-space:pre-line;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;padding:7px 2px;margin-top:3px}
#astralis-hand .hand-action-dock{flex:none;background:linear-gradient(140deg,#302033,#201423);border:1px solid #a27590;border-radius:16px;padding:10px;margin-top:5px;max-height:34%;overflow:auto;overscroll-behavior:contain}
#astralis-hand .hand-action-dock header{display:flex;align-items:center;justify-content:space-between;gap:5px}
#astralis-hand #hand-subject-title{font:600 1.125rem/1.25 Georgia,serif;color:#f5d7e6;outline:none}
#astralis-hand #hand-clear-subject{border:0;background:none;font-size:1.4375rem;padding:0;min-width:44px;flex:none}
#astralis-hand .hand-subject-description{color:#cfbfd2;font-size:0.75rem;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:3px 0 8px}
#astralis-hand .hand-actions{display:flex;gap:6px;flex-wrap:wrap}
#astralis-hand .hand-actions>button{flex:1 1 28%;min-width:min(100%,5rem);overflow-wrap:anywhere;font-size:0.8125rem;padding:8px}
#astralis-hand .hand-held{display:flex;align-items:center;justify-content:space-between;color:var(--gold);border-bottom:1px solid #76536c;margin-bottom:6px;font-size:0.75rem}
#astralis-hand .hand-held button{border:0;background:none;min-height:36px;color:#e7bcd5}
#astralis-hand .hand-notice{flex:none;font-size:0.6875rem;line-height:1.35;color:#f0dca9;padding:6px;max-height:54px;overflow:auto;background:#302332;border-radius:7px;margin-top:4px}
#astralis-hand .hand-tools{display:flex;gap:6px;flex:none;padding:4px 0}
#astralis-hand .hand-tools button{min-height:36px;background:none;border:0;font-size:0.75rem;padding:6px 10px;color:#dab0ce}
#astralis-hand .hand-tools button:first-child{flex:1;text-align:left}
#astralis-hand .hand-world-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;flex:none;border-top:1px solid #8e63754d;background:#170e20}
#astralis-hand .hand-world-nav button{background:none;border:0;border-radius:0;min-height:48px;padding:7px 2px;color:#bcadbf;font-size:0.6875rem}
#astralis-hand .hand-world-nav button[aria-current=true]{color:#ffafd8;box-shadow:inset 0 -2px #f2a1cc;background:#43233a55}
#astralis-hand .hand-view-head{flex:none;display:flex;align-items:center;gap:8px;padding:5px 0}
#astralis-hand .hand-view-head h2{font:500 1.25rem Georgia,serif}
#astralis-hand .hand-view-head button{border:0;background:none;color:var(--rose);padding:8px}
#astralis-hand .hand-subject-list,#astralis-hand .hand-destinations,#astralis-hand .hand-items{display:grid;gap:7px}
#astralis-hand .hand-subject-list .hand-subject{font-size:0.875rem;min-height:54px}
#astralis-hand .hand-destination{display:grid;grid-template-columns:1fr auto;text-align:left;min-height:66px}
#astralis-hand .hand-destination strong{font-size:1rem;color:var(--gold)}
#astralis-hand .hand-destination .hand-muted{grid-column:1}
#astralis-hand .hand-arrow{grid-column:2;grid-row:1/3;align-self:center;font-size:1.5rem;color:var(--rose)}
#astralis-hand .hand-full-prose{white-space:pre-line;font-size:1rem;line-height:1.7;padding:8px}
#astralis-hand .hand-item{display:flex;align-items:center;gap:12px;text-align:left;min-height:68px}
#astralis-hand .hand-item>span:last-child{display:flex;flex-direction:column;gap:4px}
#astralis-hand .hand-item small{color:#bdaabd}
#astralis-hand #hand-bag-search{width:100%;margin:0 0 7px}
#astralis-hand .hand-feature-list,#astralis-hand .hand-slot-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}
#astralis-hand .hand-interface-choice{display:flex;flex-direction:column;gap:8px;margin:15px 0}
#astralis-hand .hand-history-lines p{white-space:pre-wrap;overflow-wrap:anywhere;padding:5px 2px;border-bottom:1px solid #533b5044}
#astralis-hand .hand-history-paging{display:flex;justify-content:space-between;align-items:center}
#astralis-hand .hand-channel-nav{display:flex;gap:5px;padding:5px 0}
#astralis-hand .hand-view[data-hand-view=people],#astralis-hand .hand-view[data-hand-view=command],#astralis-hand .hand-view[data-hand-view=login],#astralis-hand .hand-view[data-hand-view=features]{flex:none}
#astralis-hand .hand-console-host{display:flex;min-height:0;flex:1;overflow:hidden}
#astralis-hand .console-frame,#astralis-hand .console{position:relative!important;display:flex!important;flex-direction:column!important;flex:1!important;min-height:0!important;width:100%!important;min-width:0!important;height:auto!important;padding:0!important;margin:0!important;border:0!important;background:none!important;box-shadow:none!important;overflow:hidden!important}
#astralis-hand .console-frame>[class^=frame-],#astralis-hand .console-head,#astralis-hand .command-tools,#astralis-hand .target-status{display:none!important}
#astralis-hand #output,#astralis-hand .channel-view{min-height:0!important;flex:1!important;max-height:none!important;height:auto!important;overflow:auto!important;background:#170f1e!important;border:1px solid #64485e!important;border-radius:12px;padding:10px!important;font-size:0.875rem;line-height:1.5;scrollbar-width:thin;white-space:normal}
#astralis-hand #output{white-space:pre-wrap}
#astralis-hand .hand-compose-host{flex:none;padding:4px 0;background:#17101d}
#astralis-hand #command-form{display:flex!important;width:100%;min-height:48px;margin:0;border:1px solid #bd8ba5;border-radius:13px;padding:3px;background:#241629;gap:4px}
#astralis-hand #command{width:0;flex:1;border:0;background:none;padding:8px;line-height:24px;min-width:0;resize:none}
#astralis-hand #command-chevron{display:none}
#astralis-hand #send{padding:8px;min-width:52px}
#astralis-hand #chat-channel{max-width:100px;padding:3px}
#astralis-hand .hand-done{min-height:32px;padding:4px 8px;background:none;border:0;color:var(--rose)}
#astralis-hand #input-options{font-size:0.625rem;padding:3px;display:flex;gap:8px}
#astralis-hand #input-options span{display:none}
#astralis-hand #input-options input{min-height:0}
#astralis-hand.hand-typing .hand-top,#astralis-hand.hand-typing .hand-vitals,#astralis-hand.hand-typing .hand-world-nav,#astralis-hand.hand-typing .hand-tools{display:none}
#astralis-hand.hand-typing .hand-view-head{padding:0}
#astralis-hand .hand-portals{position:absolute;inset:100px 10px 98px;pointer-events:none;z-index:15;min-height:0}
#astralis-hand .hand-portals:empty{display:none}
#astralis-hand .feature-drawer{position:absolute!important;inset:0!important;transform:none!important;width:100%!important;max-width:100%!important;height:100%!important;max-height:100%!important;min-width:0!important;min-height:0!important;margin:0!important;border:1px solid var(--line)!important;border-radius:14px!important;background:#1d1225!important;box-shadow:none!important;display:flex;flex-direction:column;pointer-events:auto;padding:10px!important;overflow:hidden!important}
#astralis-hand .feature-heading{flex:none;min-height:44px;padding:0!important}
#astralis-hand .feature-body{flex:1;min-height:0!important;overflow:auto!important;padding:5px!important}
#astralis-hand .panel-move{display:none}
#astralis-hand .feature-close{min-width:44px}
#astralis-hand .feature-body :is(.inventory-workbench,.inventory-detail-layout,.shop-workbench,.craft-workbench,.world-workspace){grid-template-columns:minmax(0,1fr)!important;min-width:0!important}
#astralis-hand .feature-body :is(.inventory-list,.inventory-results,.shop-list,.craft-list){max-height:240px;overflow:auto}
#astralis-hand .feature-body .player-portrait{max-width:220px;margin:auto}
#astralis-hand .hand-encounter{flex:none;border-radius:6px;min-height:34px;font-size:0.75rem;background:#642638;border-color:#ca668a;text-align:left;margin-top:5px}
#astralis-hand .hand-combat-target-host{flex:1;min-height:80px;max-height:32%;overflow:auto}
#astralis-hand .target-card{height:100%;padding:8px!important;background:#201327!important;border:0!important;position:relative;overflow:hidden}
#astralis-hand .target-card-heading{display:none}
#astralis-hand .target-art,#astralis-hand .target-player-art{height:80px;width:90px;float:left;margin:0 10px 0 0}
#astralis-hand #target-sprite,#astralis-hand #target-player-portrait{height:80px;width:80px;object-fit:contain;image-rendering:pixelated}
#astralis-hand #target-name{font:600 1.1875rem Georgia,serif;margin:5px 0;color:#f4d5e6}
#astralis-hand #target-state{font-size:0.75rem}
#astralis-hand #target-health{max-width:200px;width:50%;height:9px}
#astralis-hand .hand-abilities-host{flex:none;position:relative;margin-top:5px}
#astralis-hand #quick-cast{padding:5px!important;margin:0!important;background:none!important;border:0!important;overflow:visible}
#astralis-hand .quick-cast-row{display:flex;flex-direction:column;gap:4px;align-items:stretch}
#astralis-hand .quick-cast-label,#astralis-hand #quick-cast-target,#astralis-hand #quick-cast-tooltip{display:none!important}
#astralis-hand #quick-cast-slots{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px!important;width:100%}
#astralis-hand #quick-cast-slots button{width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;padding:1px!important;border-radius:8px}
#astralis-hand .quick-cast-controls{display:flex;align-items:center;justify-content:flex-end;gap:5px}
#astralis-hand .quick-cast-controls button{min-height:32px;padding:4px 10px;font-size:0.6875rem}
#astralis-hand #quick-cast-set{font-size:0.625rem}
#astralis-hand #quick-cast-picker{position:fixed!important;inset:100px 10px 150px!important;max-width:none!important;max-height:none!important;width:auto!important;background:#26162f;overflow:auto;z-index:50}
#astralis-hand #quick-cast-ability-list{max-height:none!important}
#astralis-hand[data-view=combat] .hand-content{flex:0 1 55px}
#astralis-hand[data-view=combat] [data-hand-view=combat]{display:flex;align-items:center;gap:5px;font-size:0.6875rem}
#astralis-hand[data-view=combat] [data-hand-view=combat] p{flex:1}
#astralis-hand[data-view=combat] .hand-action-dock{max-height:38%}
#astralis-hand .tells-workspace{grid-template-columns:1fr!important;min-height:0}
#astralis-hand .tells-sidebar{max-height:130px!important;overflow:auto}
#astralis-hand .tell-conversation{min-height:180px!important}
#astralis-hand .tell-info,#astralis-hand .tell-compose-meta{display:none}
#astralis-hand .login-welcome{padding:12px!important;background:#24172b!important;flex:none}
#astralis-hand .login-welcome h2{font-size:1.5rem}
#astralis-hand .welcome-actions{flex-wrap:wrap}
/* One scroll surface for the complete roster; never squeeze the cards between
   its introduction and footer when the phone viewport or keyboard gets short. */
#astralis-hand #login-welcome:is([data-roster=cards],[data-roster=delete]){flex:1 1 0;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;touch-action:pan-y pinch-zoom;scrollbar-width:thin;scroll-padding:12px}
#astralis-hand #login-welcome[data-roster]>:not([hidden]){flex-shrink:0}
#astralis-hand #login-welcome[data-roster]>.welcome-actions{flex:none;min-height:auto}
#astralis-hand #login-welcome[data-roster] .roster-grid{flex:none;min-height:auto;overflow:visible;grid-template-columns:minmax(0,1fr)}
/* Mobile bounds replace desktop centering; never translate a viewport-inset window. */
body.astralis-hand #radio-deck{position:fixed!important;inset:max(12px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) auto max(8px,env(safe-area-inset-left))!important;width:auto!important;height:calc(100dvh - max(12px,env(safe-area-inset-top)) - 70px - env(safe-area-inset-bottom))!important;min-height:0;max-height:none!important;margin:0;box-sizing:border-box;transform:none!important;transition:opacity .15s;overflow:auto;z-index:100!important}
body.astralis-hand #radio-deck .radio-heading{display:grid;grid-template-columns:minmax(0,1fr) auto 44px;gap:8px;position:sticky;top:0;z-index:3;background:var(--sk-panel,var(--panel,#091d36))}
body.astralis-hand #radio-deck .radio-heading>div{min-width:0}
body.astralis-hand #radio-deck h2{font-size:clamp(16px,5.5vw,22px);overflow-wrap:anywhere}
body.astralis-hand #radio-deck .hand-radio-stop{min-width:0;min-height:44px;padding:8px;font-size:11px;line-height:1.3;white-space:normal}
body.astralis-hand #radio-deck #radio-close{width:44px;height:44px}
@media(prefers-reduced-motion:reduce){body.astralis-hand #radio-deck{transition:none}}
body.astralis-hand .radio-handle,body.astralis-hand>.client-topbar,body.astralis-hand>.site-header{display:none!important}
@media(max-height:700px){#astralis-hand .hand-prose{-webkit-line-clamp:2}#astralis-hand .hand-scene{flex-basis:85px;max-height:20vh;margin:5px 0}#astralis-hand .hand-nearby .hand-subject:nth-child(n+3){display:none}#astralis-hand .hand-action-dock{padding:8px}#astralis-hand #hand-place-name{font-size:1.3125rem}#astralis-hand .hand-recent{-webkit-line-clamp:1}}
@media(max-height:580px){#astralis-hand .hand-scene{min-height:40px;flex-basis:60px}#astralis-hand .hand-top{min-height:42px}#astralis-hand .hand-vitals{padding-bottom:3px}#astralis-hand .hand-prose{-webkit-line-clamp:2}#astralis-hand .hand-subject-description{-webkit-line-clamp:1}#astralis-hand .hand-action-dock{max-height:40%}#astralis-hand .hand-world-nav button{min-height:44px}#astralis-hand .hand-recent{min-height:25px;padding:3px 0}#astralis-hand #hand-place-name{font-size:1.1875rem}}
@media(orientation:landscape) and (max-height:500px){#astralis-hand{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(230px,.8fr);grid-template-rows:40px minmax(0,1fr) auto 44px;gap:5px!important}#astralis-hand .hand-top{grid-column:1;grid-row:1}#astralis-hand .hand-vitals{grid-column:2;grid-row:1;padding:6px;align-self:center}#astralis-hand .hand-content{grid-column:1;grid-row:2/4}#astralis-hand .hand-action-dock{grid-column:2;grid-row:2;max-height:none;min-height:0;margin:0}#astralis-hand .hand-tools{grid-column:2;grid-row:3}#astralis-hand .hand-world-nav{grid-column:1/3;grid-row:4}#astralis-hand .hand-notice{grid-column:2;grid-row:3;font-size:0.625rem;position:absolute;bottom:88px;right:8px;max-width:46%}#astralis-hand .hand-view-head{position:absolute;top:42px;right:10px;z-index:20}#astralis-hand .hand-scene{max-height:100px;min-height:40px}#astralis-hand .hand-portals{inset:45px 8px 45px}#astralis-hand .hand-compose-host{grid-column:2;grid-row:2/4;align-self:end}#astralis-hand .hand-combat-target-host{grid-column:1;grid-row:2/4;max-height:none}#astralis-hand .hand-abilities-host{grid-column:2;grid-row:3}#astralis-hand .hand-encounter{display:none}#astralis-hand[data-view=combat] .hand-content{display:none}#astralis-hand.hand-typing{display:flex!important}#astralis-hand.hand-typing .hand-compose-host{align-self:stretch}}
@media(prefers-reduced-motion:reduce){#astralis-hand *{transition:none!important;animation:none!important}}

.hand-radio-stop{display:none}body.astralis-hand .hand-radio-stop{display:inline-block;min-height:44px}
#astralis-hand .hand-view[data-hand-view=give]{padding:14px;display:flex;flex-direction:column;gap:14px}

#astralis-hand header{border:0;box-shadow:none}#astralis-hand .hand-action-dock>header{min-height:0;padding:0;margin:0}#astralis-hand .hand-top{padding:0}#astralis-hand #hand-item-detail{padding:12px}#astralis-hand #hand-item-detail>.item-icon{width:100px;height:100px;margin:10px auto;display:block}#astralis-hand .hand-item-stats{display:grid;grid-template-columns:1fr 1.5fr;gap:7px;font-size:0.8125rem}#astralis-hand .hand-item-stats dt{color:var(--gold);text-transform:capitalize}#astralis-hand .hand-item-stats dd{margin:0}#astralis-hand #character-portrait-art{max-width:240px;max-height:260px;margin:8px auto;aspect-ratio:1}#astralis-hand #character-portrait{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}#astralis-hand #portrait-status{padding:5px;font-size:0.75rem}#astralis-hand #room-scene-frame{height:100%;width:100%;max-height:none;aspect-ratio:auto}#astralis-hand #room-scene-expand{display:none}

#astralis-hand .hand-effects{flex:none;min-height:32px;padding:4px 6px;text-align:left;color:#f4c9a3;font-size:0.6875rem;border:0;background:#4b2737;max-height:60px;overflow:auto}
.hand-restore-touch{position:fixed;bottom:12px;right:12px;z-index:2000;min-height:44px;padding:10px;border:1px solid #f49cc9;border-radius:12px;background:#302033;color:#fff}
#astralis-hand .hand-scene:has(#room-scene-status:not([hidden])){flex:0 0 auto;min-height:44px;max-height:64px}
#astralis-hand #room-scene-status{padding:10px;font-size:0.75rem}
#astralis-hand .hand-item-stats{overflow-wrap:anywhere}
#astralis-hand [data-hand-view=character] #character-portrait-art{width:100%;flex:none}

#astralis-hand #movement-panel{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;transform:none!important;margin:0!important;z-index:20;pointer-events:auto;background:#1d1225;overflow:auto;padding:12px}#astralis-hand #movement-panel .compass{grid-template-columns:repeat(3,1fr)}#astralis-hand #movement-panel .quick{display:grid;grid-template-columns:1fr 1fr}#astralis-hand #compass-drag,#astralis-hand #compass-reset{display:none}#astralis-hand #movement-panel .compass-toolbar{justify-content:flex-end}
#astralis-hand .hand-item .item-icon{display:inline-flex;flex:none;width:48px;height:48px;align-items:center;justify-content:center}#astralis-hand .hand-item .item-icon canvas{display:block;width:48px;height:48px;image-rendering:pixelated}

#astralis-hand .hand-slot-list button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:4px}#astralis-hand .hand-combat-recent{white-space:pre-line;line-height:1.4;margin:0 0 8px;max-height:4.2em;overflow:auto}
/* The encounter target already names the subject; keep the thumb controls visible. */
#astralis-hand[data-view=combat] .hand-action-dock>header,#astralis-hand[data-view=combat] .hand-subject-description,#astralis-hand[data-view=combat] .hand-encounter{display:none}
#astralis-hand[data-view=combat] .hand-action-dock{overflow:auto;max-height:none;padding:8px}
#astralis-hand[data-view=combat] .hand-view-head{padding:0}
@media(max-height:650px){#astralis-hand[data-view=combat] .hand-view-head{display:none}#astralis-hand[data-view=combat] .hand-combat-target-host{min-height:64px;max-height:100px}#astralis-hand[data-view=combat] .hand-content{flex:1 1 45px;min-height:28px}#astralis-hand[data-view=combat] .hand-notice{max-height:28px;padding:3px}}
@media(orientation:landscape) and (max-height:500px){#astralis-hand[data-view=combat]{grid-template-columns:minmax(0,1fr) minmax(280px,1fr);grid-template-rows:40px minmax(80px,1fr) 104px 44px}#astralis-hand[data-view=combat] .hand-combat-target-host{grid-column:1;grid-row:2;max-height:none;min-height:0}#astralis-hand[data-view=combat] .hand-abilities-host{grid-column:2;grid-row:2;min-height:0;overflow:auto;margin:0}#astralis-hand[data-view=combat] .hand-action-dock{grid-column:2;grid-row:3}#astralis-hand[data-view=combat] .hand-tools{grid-column:1;grid-row:3;align-self:end}#astralis-hand[data-view=combat] .hand-world-nav{grid-row:4}#astralis-hand:not([data-view=world]) .hand-view-head{display:none}}

body.astralis-hand #astralis-hand{overflow-x:hidden;overflow-y:auto}#astralis-hand .hand-content{min-height:56px}

.hand-echo-subject .hand-subject-icon { color: #c9c2ff; text-shadow: 0 0 10px #b5a0ff66; animation: memory-echo-drift 4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .hand-echo-subject .hand-subject-icon { animation: none; } }
