/* Phone-only social and travel controls. The real radar, menu, chat and world controls own their actions. */
html.mobile-hud.obsidian-phone #world-hud {
  --obs-map-size:clamp(58px,8.4vw,78px);
  --obs-map-action-height:22px;
  --obs-map-row-gap:3px;
  --obs-map-action-gap:4px;
  --obs-map-action-ink:#f2f2fc;
  --obs-map-action-edge:#8ea5b9;
  --obs-map-action-fill:#24374be8;
  --obs-map-action-font:600 clamp(9.5px,calc(.85vw + 3.5px),10px)/1 "Segoe UI",Arial,sans-serif;
  --obs-map-action-icon:clamp(10.5px,calc(.95vw + 3px),13px);
  --obs-topleft:var(--hud-left,max(6px,env(safe-area-inset-left)));
  --obs-topright:max(7px,env(safe-area-inset-right));
  --obs-top:max(6px,env(safe-area-inset-top));
  --obs-nav-height:44px;
  --obs-panel:var(--obsidian-surface,rgb(17 15 25 / .88));
  --obs-edge:var(--obsidian-edge,#81748d);
  --obs-ink:var(--obsidian-ink,#f4eff6);
  --obs-detail:var(--obsidian-accent,#e6caff);
  --obs-plate:var(--obsidian-grain,linear-gradient(transparent,transparent)) 0 0 / 136px 91px,var(--obsidian-wash,linear-gradient(120deg,#baa6d211,transparent 54%)),var(--obs-panel);
}
html.mobile-hud.obsidian-phone #world-hud:has(#radar-view:not([hidden])) {
  --obs-map-row-gap:calc(var(--obsidian-radar-offset) + clamp(5px,.72vw,7px));
}
html.mobile-hud.obsidian-phone #world-hud #mobile-navigation .mobile-nav-fixed-chat {display:none!important}
html.mobile-hud.obsidian-phone #world-hud #mobile-navigation .mobile-nav-backdrop {padding:6px var(--obs-topright) 6px var(--obs-topleft);background:#08070c92}
html.mobile-hud.obsidian-phone #world-hud #mobile-navigation .mobile-nav-panel {color:var(--obs-ink);background:#1b181f;box-shadow:inset 0 0 0 1px var(--obs-edge)}
html.mobile-hud.obsidian-phone #world-hud #mobile-navigation .mobile-nav-header {background:var(--obs-plate)}
html.mobile-hud.obsidian-phone #world-hud #mobile-navigation .mobile-nav-empty {display:none}
html.mobile-hud.obsidian-phone #world-hud #mobile-navigation:not([data-editing=true]) .mobile-nav-rail {
  position:fixed;display:flex;align-items:center;justify-content:flex-end;gap:3px;
  top:var(--obs-top);left:min(calc(50% + clamp(55px,12vw,121px)),calc(100% - var(--obs-topright) - var(--obs-map-size) - 58px));
  right:calc(var(--obs-topright) + var(--obs-map-size) + 7px);bottom:auto;
  width:auto;height:var(--obs-nav-height);pointer-events:none;
}
html.mobile-hud.obsidian-phone #world-hud #mobile-navigation:not([data-editing=true]) .mobile-nav-slots {display:contents}
html.mobile-hud.obsidian-phone #world-hud #mobile-navigation:not([data-editing=true]) .mobile-nav-rail-button {
  display:flex;flex-flow:column;align-items:center;justify-content:center;gap:1px;
  width:max-content;min-width:44px;height:var(--obs-nav-height);min-height:44px;
  flex:none;padding:2px 6px;color:var(--obs-ink);pointer-events:auto;
}
html.mobile-hud.obsidian-phone #world-hud #mobile-navigation:not([data-editing=true]) .mobile-nav-rail-button::before {
  inset:1px 0;border:1px solid var(--obs-edge);border-radius:0;background:var(--obs-plate);
  clip-path:polygon(5px 0,100% 0,100% calc(100% - 4px),calc(100% - 4px) 100%,0 100%,0 5px);
}
html.mobile-hud.obsidian-phone #world-hud #mobile-navigation:not([data-editing=true]) [data-mobile-nav-menu] {order:2}
html.mobile-hud.obsidian-phone #world-hud #mobile-navigation:not([data-editing=true]) [data-nav-overflow] {position:absolute;visibility:hidden;pointer-events:none}
html.mobile-hud.obsidian-phone #world-hud #mobile-navigation .mobile-nav-rail-button .obs-nav-label {white-space:nowrap;font:600 10px/1.1 "Segoe UI",sans-serif}
html.mobile-hud.obsidian-phone #world-hud #mobile-navigation .mobile-nav-rail-button .mobile-nav-native {--native-size:21px}
html.mobile-hud.obsidian-phone #world-hud #mobile-navigation .mobile-nav-rail-button svg {width:19px;height:19px}
html.mobile-hud.obsidian-phone #world-hud #mobile-navigation[data-editing=true] .obs-nav-label{display:none}
html.mobile-hud.obsidian-phone #world-hud #mobile-navigation[data-editing=true] .mobile-nav-backdrop{padding-right:calc(var(--obs-topright) + 50px)}
html.mobile-hud.obsidian-phone #world-hud #mobile-navigation[data-open=true]:not([data-editing=true]) .mobile-nav-rail{visibility:hidden}
html.mobile-hud.obsidian-phone #world-hud:has(#mobile-navigation) #hud-radar {
  position:absolute;top:var(--obs-top)!important;right:var(--obs-topright)!important;left:auto!important;
  display:block;width:var(--obs-map-size);min-width:0;height:var(--obs-map-size);min-height:0;
  margin:0;padding:0;border:0;border-radius:50%;box-shadow:none;background:transparent;overflow:visible;
  & [hidden],&[hidden] {display:none!important}
  & #radar-view {position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;box-sizing:border-box;border:2px solid var(--obs-edge);border-radius:50%;background:#19161d;pointer-events:none}
  & > div:first-child {position:absolute;inset:0;z-index:1;width:100%;height:100%;display:block;background:none;pointer-events:none}
  & .radar-map {position:absolute;inset:0;display:block;width:100%;height:100%;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:50%;background:none;box-shadow:none;color:transparent;font-size:0;pointer-events:auto}
  &:has(#radar-view[hidden]) .radar-map {background:var(--obs-plate);border:1px solid var(--obs-edge);color:var(--obs-ink);font:600 11px/1 "Segoe UI",sans-serif}
  & .obs-radar-region {display:flex;align-items:center;justify-content:center;gap:4px;position:absolute;right:calc(100% + 7px);top:var(--obs-nav-height);max-width:min(140px,28vw);min-height:20px;height:23px;width:max-content;padding:0 6px;color:var(--obs-ink);font:600 11px/1 "Segoe UI",sans-serif;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;border:1px solid var(--obs-edge);border-radius:2px;background:var(--obs-plate)}
  & .obs-radar-region::after {content:"";flex:none;width:4px;height:4px;rotate:45deg;translate:0 -1px;border:solid currentColor;border-width:0 1px 1px 0}
  & .obs-radar-options {position:absolute;z-index:4;display:flex;right:calc(100% + 7px);top:calc(var(--obs-nav-height) + 24px);padding:3px;background:#201c26;border:1px solid var(--obs-edge)}
  & .obs-radar-options .radar-zoom {position:static;display:flex;inset:auto;width:auto;height:auto;margin:0;padding:0;background:none}
  & .obs-radar-options button {position:static;inset:auto;display:grid;place-items:center;min-width:44px;width:44px;height:44px;min-height:44px;border:0;background:none;box-shadow:none;color:var(--obs-ink)}
  & #mobile-teleport {position:absolute;inset:calc(100% + var(--obs-map-row-gap)) 0 auto 0;width:100%;height:44px;min-height:44px;min-width:0;display:flex;align-items:center;justify-content:center;gap:1px;padding:0 0 calc(44px - var(--obs-map-action-height));font:var(--obs-map-action-font);letter-spacing:-.22px;color:var(--obs-map-action-ink);text-shadow:none}
  & #mobile-teleport::after {height:var(--obs-map-action-height);background:var(--obs-map-action-fill);border:1px solid var(--obs-map-action-edge);border-radius:2px}
  & #mobile-teleport::before {width:var(--obs-map-action-icon);height:13px}
}
html.mobile-hud.obsidian-phone #world-hud #mobile-chat[data-centered-chat] {
  --mobile-chat-warm:#e5ccef;
  &[data-state=expanded] {z-index:12}
  & [data-channel=general] {--mobile-message-color:#eee7ef}
  & [data-channel=party] {--mobile-message-color:#b5dd95}
  & [data-channel=clan] {--mobile-message-color:#9ac8ff}
  & [data-channel=whisper] {--mobile-message-color:#efb0df}
  & [data-channel=trade] {--mobile-message-color:#eace90}
  & [data-channel=shout] {--mobile-message-color:#f1b47a}
  & [data-channel=alliance] {--mobile-message-color:#a6dcd5}
  & [data-channel=system] {--mobile-message-color:#d8cfc0}
  & [data-channel=combat] {--mobile-message-color:#e6b499}
  --obs-chat-band:clamp(38px,5.22222vw,53px);
  --obs-chat-unit:clamp(.75px,.111111vw,1.25px);
  --obs-chat-line:clamp(10px,1.44222vw,15px);
  --obs-chat-font:clamp(9px,1.22222vw,13px);
  --obs-chat-seam:#c1a7d86b;
  --obs-chat-ink:rgb(16 15 23 / .83);
  --obs-chat-xpad:clamp(5px,.77778vw,8px);
  & .mobile-chat-preview {
    --obs-chat-ink:rgb(16 15 23 / .57);
    display:grid;grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:auto var(--obs-chat-band);
    align-items:end;gap:2px 0;width:100%;padding:0;color:#dfdbd0;
    font:550 var(--obs-chat-font)/var(--obs-chat-line) "Segoe UI",Arial,sans-serif;
  }
  & :is(.mobile-chat-preview-lines,.mobile-chat-preview-events) {
    display:grid;align-content:center;row-gap:1px;font:inherit;text-shadow:none;
  }
  & .mobile-chat-preview-events {
    grid-area:1/1;width:100%;min-width:0;min-height:0;height:auto;margin:0;padding:2px var(--obs-chat-xpad);
    border:0;border-radius:2px;background:linear-gradient(90deg,rgb(16 17 17 / .48),rgb(16 17 17 / .33) 82%,transparent);
    box-shadow:none;color:#dfdbd0;font:inherit;text-shadow:0 1px rgb(9 8 12 / .9);text-align:left;pointer-events:auto;
  }
  & .mobile-chat-preview-open {
    grid-area:2/1;display:grid;align-content:center;width:100%;min-width:0;min-height:0;height:var(--obs-chat-band);
    padding:0 var(--obs-chat-xpad) 0 calc(var(--obs-chat-xpad) - 1px);box-sizing:border-box;border:solid var(--obs-chat-seam);border-width:1px 0 1px 1px;
    border-radius:3px 0 0 3px;background:var(--obs-chat-ink);box-shadow:none;cursor:pointer;
  }
  & :is(.mobile-chat-preview-icon,.mobile-chat-launch) {
    position:relative;display:flex!important;align-items:flex-end;justify-content:stretch;
    padding:0;margin:0;pointer-events:auto;color:#e1c8ff;border:0;border-radius:0;background:transparent;box-shadow:none;
  }
  & .mobile-chat-preview-icon {
    grid-area:2/2;width:44px;min-width:44px;height:max(44px,var(--obs-chat-band));min-height:44px;
  }
  & .obs-chat-key-face {
    position:relative;box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:5px;width:100%;height:var(--obs-chat-band);
    border:solid var(--obs-chat-seam);border-width:1px 1px 1px 0;border-radius:0 3px 3px 0;
    background:var(--obsidian-grain,linear-gradient(transparent,transparent)) right top / 136px 91px,var(--obs-chat-ink);
  }
  & .mobile-chat-preview-icon .obs-chat-key-face::before {
    content:"";position:absolute;left:0;inset-block:19%;width:1px;background:var(--obs-chat-seam);
  }
  & .mobile-chat-launch {width:74px;height:44px;min-width:74px}
  & .mobile-chat-launch .obs-chat-key-face {height:33px;border-width:1px;border-radius:3px;font:600 12px/1 "Segoe UI",sans-serif}
  & .mobile-chat-preview-icon::before,& .mobile-chat-launch::before {content:none}
  & :is(.mobile-chat-preview-icon,.mobile-chat-launch) svg {width:20px;height:20px;stroke-width:1.9}
  & .mobile-chat-preview-icon .obs-chat-key-face svg {width:calc(16 * var(--obs-chat-unit));height:calc(16 * var(--obs-chat-unit))}
  & :is(.mobile-chat-preview-icon,.mobile-chat-launch):active .obs-chat-key-face {background-color:#302a36}
  & .mobile-chat-preview-icon[data-unread]::after,& .mobile-chat-launch .mobile-chat-unread {
    position:absolute;inset:auto;bottom:calc(var(--obs-chat-band)/2 + 4px);left:calc(50% + 5px);width:7px;height:7px;
    border:1px solid #37292e;border-radius:50%;background:#f2aedf;pointer-events:none;color:transparent;font-size:0;
  }
  & .mobile-chat-preview-icon[data-unread]::after {
    content:"";box-sizing:border-box;width:calc(9 * var(--obs-chat-unit));height:calc(9 * var(--obs-chat-unit));
    left:calc(50% + 5 * var(--obs-chat-unit));bottom:calc(var(--obs-chat-band)/2 + 4 * var(--obs-chat-unit));
  }
  & .mobile-chat-launch .mobile-chat-unread {left:auto;right:3px;bottom:24px}
  & .mobile-chat-launch[hidden],& .mobile-chat-preview[hidden],& .mobile-chat-preview-open[hidden] {display:none!important}
  & .mobile-chat-preview-line {
    display:block;width:100%;min-width:0;min-height:0;height:auto;margin:0;padding:0;border:0;box-shadow:none;background:none;
    color:var(--mobile-message-color);font:inherit;text-align:left;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;
  }
  & .mobile-chat-preview-line[data-channel=party] {color:#b7e3a1}
  & .mobile-chat-preview-line[data-channel=clan] {color:#9dc9ff}
  & .mobile-chat-preview-line[data-channel=whisper] {color:#f7b1ef}
  & .obs-preview-symbol {display:none}
  & .obs-chat-reply-mark {margin-left:4px;font-size:.85em}
  & .mobile-chat-panel {width:min(462px,calc(var(--centered-chat-viewport-width,100vw) - 12px));height:min(286px,calc(var(--centered-chat-viewport-height,100dvh) - 12px));border:1px solid #a699ae52;border-radius:4px;box-shadow:none;background:#19181deb;color:#f3edf3}
  & .mobile-chat-panel[data-picker-open] {width:min(462px,calc(var(--centered-chat-viewport-width,100vw) - 12px));height:min(297px,calc(var(--centered-chat-viewport-height,100dvh) - 8px))}
  &:not([data-composing=true]) .mobile-chat-panel:not([data-picker-open]):has(> .obs-chat-tabs) {
    grid-template-rows:44px 44px minmax(0,1fr) auto;
    height:min(308px,calc(var(--centered-chat-viewport-height,100dvh) - 12px));
    & > .mobile-chat-log {grid-row:3}
    &[data-readonly] > .mobile-chat-log {grid-row:3 / 5}
    & > .mobile-chat-form {grid-row:4}
  }
  & .obs-chat-tabs {
    grid-area:2 / 1;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1px;
    width:100%;min-width:0;box-sizing:border-box;padding:0 6px;
    background:#211e25;box-shadow:inset 0 -1px #a699ae30;
  }
  & .mobile-chat-panel[data-picker-open] > .obs-chat-tabs,&[data-composing=true] .obs-chat-tabs {display:none}
  & .obs-chat-tabs button {
    display:flex;align-items:center;justify-content:center;gap:3px;box-sizing:border-box;
    width:100%;min-width:0;height:44px;margin:0;padding:0 2px;border:0;border-radius:0;
    color:var(--mobile-message-color);background:transparent;box-shadow:none;
    font:600 12px/1.1 "Segoe UI",Arial,sans-serif;white-space:nowrap;
  }
  & .obs-chat-tabs [data-channel=private] {--mobile-message-color:#efb0df}
  & .obs-chat-tabs [aria-pressed=true] {
    color:var(--mobile-message-color);background:color-mix(in srgb,var(--mobile-message-color) 12%,transparent);
    box-shadow:inset 0 -2px currentColor;
  }
  & .obs-chat-tabs [data-unavailable]:not([aria-pressed=true]) {color:#aaa2af}
  & .obs-chat-tabs [data-unavailable]::after {
    content:"";flex:none;width:9px;height:11px;background:#b8aebe;
    mask:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16' fill='none' stroke='black' stroke-width='1.5'%3E%3Crect x='2' y='7' width='10' height='8' rx='1.5'/%3E%3Cpath d='M4 7V5a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E");
  }
  & .obs-chat-tabs button:focus-visible {outline:1px solid var(--obsidian-accent);outline-offset:-3px}
  & .mobile-chat-header {gap:5px;padding:0 3px 0 12px;background:var(--obs-plate);border-bottom:1px solid var(--obs-edge)}
  & .obs-chat-title {display:flex;align-items:center;gap:6px;flex:none;color:#f2ebf6;font:650 15px/1 "Segoe UI",sans-serif}
  & .obs-chat-title svg {width:18px;height:18px}
  & .mobile-chat-context {justify-content:flex-start;gap:4px;padding:0 6px;margin-left:3px;font:600 12px/1 "Segoe UI",sans-serif;color:var(--obs-ink)}
  & .mobile-chat-context svg {width:13px;height:13px}
  & .mobile-chat-hide {order:2;display:flex!important;align-items:center;justify-content:center;gap:4px;min-width:44px;height:44px;padding:0 4px;color:inherit;border:0;box-shadow:none;background:none;font:600 11px/1 "Segoe UI",sans-serif}
  & .mobile-chat-hide svg,& .mobile-chat-contract svg {width:16px;height:16px}
  & .mobile-chat-contract {order:3;position:relative;color:inherit}
  & .mobile-chat-contract::before {content:"";position:absolute;left:0;inset-block:28%;width:1px;background:currentColor;opacity:.22}
  & .mobile-chat-log {gap:0;padding:6px 12px;background:linear-gradient(110deg,#24212a42,transparent 64%),#151419c4;scrollbar-color:#857c8b5c transparent}
  & .mobile-chat-log .mobile-chat-row {color:var(--mobile-message-color);font:500 13px/1.32 "Segoe UI",sans-serif;min-height:23px;padding:3px 0;text-align:left;border-radius:0}
  & .mobile-chat-log .mobile-chat-tag {margin-right:2px;color:inherit;letter-spacing:.035em;opacity:.9;font:650 10.5px/1 "Segoe UI",sans-serif}
  & .mobile-chat-log .mobile-chat-author {font-weight:650}
  & .mobile-chat-log .mobile-chat-row[data-social-start] {border-top:1px solid #9c8ca32f;margin-top:4px;padding-top:7px}
  & .mobile-chat-log .mobile-chat-row[data-whisper-excerpt]::after {content:"↩";margin-left:4px;font:600 13px/1 "Segoe UI",sans-serif}
  & .mobile-chat-log .mobile-chat-row[data-continuation] :is(.mobile-chat-tag,.mobile-chat-author,.obs-chat-separator) {display:none}
  & .mobile-chat-log .mobile-chat-row[data-continuation] {padding:1.5px 0 1.5px 11px;min-height:20px}
  & .mobile-chat-picker {padding:4px 6px;background:#1c1a21}
  & .mobile-chat-grid {grid-auto-rows:44px;padding:0;gap:3px}
  & .mobile-chat-grid .mobile-chat-tile {justify-content:flex-start;gap:5px;padding:0 8px;border:1px solid #9d91a430;border-radius:2px;background:#27242c;color:var(--mobile-message-color);font:600 12px/1.1 "Segoe UI",sans-serif}
  & .mobile-chat-grid .mobile-chat-tile[aria-pressed=true] {border-color:var(--mobile-message-color);background:color-mix(in srgb,var(--mobile-message-color) 11%,#222026)}
  & .mobile-chat-grid .mobile-chat-picker-close,& .mobile-chat-grid:has([data-chat-choice="9"]:not([hidden])) .mobile-chat-picker-close {grid-column:2;width:100%;justify-content:center;padding:0;border-color:transparent;background:none;color:#e3d9e4}
  & .mobile-chat-form {display:flex;align-items:center;gap:0;width:100%;min-height:56px;padding:6px;border:0;background:#26232b}
  & .obs-chat-capsule {box-sizing:border-box;display:flex;align-items:center;flex:1;min-width:0;min-height:44px;padding-left:13px;border-radius:23px;background:#322f38;box-shadow:inset 0 0 0 1px #ffffff18;cursor:text}
  & .obs-chat-capsule:focus-within {background:#37343d;box-shadow:inset 0 0 0 1px #938b9e}
  & .obs-chat-writing {display:flex;justify-content:center;flex-flow:column;flex:1;min-width:0;padding-block:3px}
  & .obs-chat-writing .mobile-chat-input {appearance:none;display:block;resize:none;flex:none;width:100%;height:20px;min-height:20px;max-height:60px;box-sizing:border-box;margin:0;padding:0;border:0;border-radius:0;box-shadow:none!important;outline:0;background:transparent;color:#f4f0f5;font:400 16px/20px "Segoe UI",sans-serif;caret-color:var(--mobile-message-color);overflow:auto;scrollbar-width:thin}
  & .obs-chat-entry {display:flex;align-items:flex-start;width:100%;min-width:0}
  & .obs-chat-entry .obs-chat-prefix {
    flex:none;padding-right:1px;color:var(--mobile-message-color);
    font:400 16px/20px "Segoe UI",Arial,sans-serif;user-select:none;
  }
  & .obs-chat-writing .obs-chat-entry .mobile-chat-input {flex:1 1 0%;width:0;min-width:0}
  & .obs-chat-recipient {
    display:flex;align-items:center;gap:6px;min-width:0;margin:0;padding:0;
    color:var(--mobile-message-color);font:600 12px/1 "Segoe UI",Arial,sans-serif;cursor:text;
  }
  & .obs-chat-writing .obs-chat-recipient input {
    flex:0 1 235px;box-sizing:border-box;width:100%;min-width:0;max-width:100%;
    height:clamp(32px,calc(var(--mobile-chat-vv-height,230px) - 108px),44px);min-height:0;
    margin:0;padding:0 7px;appearance:none;border:solid transparent;border-width:5px 0;border-radius:3px;
    background:#28252d;background-clip:padding-box;box-shadow:none;outline:0;
    color:#f4eaf2;caret-color:var(--mobile-message-color);font:400 16px/20px "Segoe UI",Arial,sans-serif;
  }
  & .obs-chat-writing .obs-chat-recipient input:focus {background-color:#463849}
  & .obs-chat-recipient input::placeholder {color:#c5b8c5;font-size:14px}
  & .mobile-chat-input::placeholder {color:var(--mobile-message-color);font-size:14px;opacity:.77}
  & .obs-chat-capsule .mobile-chat-send {position:relative;isolation:isolate;align-self:flex-end;min-width:44px;flex:0 0 44px;height:44px;margin:0;padding:0;border:0;border-radius:50%;box-shadow:none;background:none;color:#211e25}
  & .mobile-chat-send::before {content:"";position:absolute;inset:6px;z-index:-1;border-radius:50%;background:var(--mobile-message-color)}
  & .mobile-chat-send:disabled {opacity:1;color:#c7bfcb}
  & .mobile-chat-send:disabled::before {background:#49454e}
  & .mobile-chat-send svg {width:17px;height:17px}
  &[data-state=expanded][data-composing=true] {justify-content:center;padding:max(4px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left))}
  &[data-state=expanded][data-composing=true]::before {background:#141117eb}
  &[data-state=expanded][data-composing=true] .mobile-chat-panel {width:min(512px,100%);border:1px solid #87798e8c;background:#1c191e}
  &[data-state=expanded][data-composing=true] .mobile-chat-form {display:grid;grid-template-columns:44px minmax(0,1fr);grid-template-rows:auto auto auto;align-items:center;gap:0;padding:6px;box-shadow:none;background:#26232b}
  &[data-state=expanded][data-composing=true] .mobile-chat-compose-back {grid-column:1;grid-row:2}
  &[data-state=expanded][data-composing=true] .obs-chat-capsule {grid-column:2;grid-row:2}
  &[data-state=expanded][data-composing=true] .mobile-chat-destination {grid-area:auto;max-width:100%;margin-bottom:2px;font:600 11px/13px "Segoe UI",sans-serif;color:var(--mobile-message-color)}
  &[data-state=expanded][data-composing=true] .mobile-chat-compose-note {grid-row:3}
  & .obs-chat-quote {grid-column:1/-1;grid-row:1;display:flex;align-items:center;min-height:38px;margin:0 0 4px;padding-left:12px;background:#24202a}
  & .obs-chat-excerpt {display:flex;flex-direction:column;min-width:0;flex:1;border-left:2px solid #db9fc9;padding-left:8px}
  & .obs-chat-excerpt :is(b,span) {overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font:500 12px/15px "Segoe UI",sans-serif}
  & .obs-chat-excerpt b {font-weight:650;color:#efb0df}
  & .obs-chat-cancel {width:44px;height:38px;border:0;background:none;color:#e4d4e3;font-size:20px}
  & [hidden] {display:none!important}
}
@media(max-height:256px) {
  html.mobile-hud.obsidian-phone #world-hud #mobile-chat[data-centered-chat] .mobile-chat-panel[data-picker-open]:has(> .obs-chat-tabs) {
    height:min(297px,calc(var(--centered-chat-viewport-height,100dvh) - 4px));
    max-height:calc(var(--centered-chat-viewport-height,100dvh) - 4px);
    & .mobile-chat-picker {padding-block:2px}
    & .mobile-chat-grid .mobile-chat-picker-close {grid-column:auto}
  }
}
@media(max-width:710px) {
  html.mobile-hud.obsidian-phone #world-hud:has(#mobile-navigation) #hud-radar .obs-radar-region {height:17px;min-height:17px}
  html.mobile-hud.obsidian-phone #world-hud #mobile-chat[data-centered-chat] {
    --obs-chat-unit:clamp(.75px,.166667vw,1.25px);
    --obs-chat-band:clamp(25px,5.83333vw,41px);
    --obs-chat-font:clamp(8px,1.5vw,11px);
    --obs-chat-line:clamp(9px,1.66667vw,12px);
    --obs-chat-xpad:4px;
    & :is(.mobile-chat-preview-lines,.mobile-chat-preview-events) {row-gap:0}
    & .obs-preview-symbol {display:inline}
    & .obs-preview-type {display:none}
  }
}
html.mobile-hud.obsidian-phone #world-hud.show-joystick #movement-stick {
  background:rgb(26 23 29 / .27);border:1px solid #c4b3cf73;box-shadow:none;
}
html.mobile-hud.obsidian-phone #world-hud.show-joystick #movement-stick::before {border-color:#d6c7dd40;background:none;box-shadow:none}
html.mobile-hud.obsidian-phone #world-hud.show-joystick #movement-stick span {width:37%;border:1px solid #d7c6da87;background:rgb(172 151 178 / .35);box-shadow:none}
html.mobile-hud.obsidian-phone #world-hud.show-joystick #movement-stick.is-held span {background:rgb(193 169 207 / .6);border-color:#ddc6ec}
@media (prefers-reduced-motion:no-preference) {
  html.mobile-hud.obsidian-phone #mobile-chat .mobile-chat-preview-icon[data-whisper-cue][data-unread]::after,
  html.mobile-hud.obsidian-phone #mobile-chat .mobile-chat-launch[data-whisper-cue] .mobile-chat-unread {
    animation:obs-chat-whisper 220ms ease-out;
  }
  @keyframes obs-chat-whisper {
    from {opacity:.65;scale:.7}
    56% {opacity:1;scale:1.22}
    to {opacity:1;scale:1}
  }
}
