.home-companion{position:fixed;top:0;left:0;width:236px;z-index:18;pointer-events:none;will-change:transform;font-size:11px;line-height:1.5}
.home-companion[data-blocked=true]{visibility:hidden}
.home-companion[data-menu-open=true]{z-index:40}
.home-companion-body{position:relative;padding-top:30px;display:flex;flex-direction:column;align-items:center}
.home-companion-stage{position:relative;width:100%;aspect-ratio:1;padding:0;pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;border-radius:40%;background:none}
.home-companion-stage:active{transform:none!important}
.home-companion-stage canvas,.home-companion-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
.home-companion-stage>.home-companion-poster{inset:auto;left:var(--cat-poster-left);top:var(--cat-poster-top);width:var(--cat-poster-size);height:var(--cat-poster-size)}
.home-companion-stage canvas{visibility:hidden;filter:drop-shadow(0 5px 3px #5b463318)}
.home-companion[data-ready=true] canvas{visibility:visible}
.home-companion[data-ready=true] .home-companion-poster{visibility:hidden}
.home-companion-bubble{position:absolute;bottom:calc(100% - 26px);left:50%;z-index:4;transform:translateX(-50%);max-width:min(190px,100vw - 30px);padding:8px 12px;background:#fffcf7;border:1px solid #e3d2c3;border-radius:12px;color:#8b705d;text-align:center;width:max-content;box-shadow:0 3px 14px #61492d0b}
.cat-note.cat-note-companion{grid-template-columns:minmax(0,1fr) 60px;min-height:158px;padding:20px 0;gap:14px}
.cat-note-companion .home-cat-call{width:54px;height:54px;border-radius:50%;background:#eee3d5;display:grid;place-items:center;justify-self:center}
.home-cat-call img{width:26px;height:26px;opacity:.55}
.cat-note-companion .cat-room-link{display:inline-flex;margin-top:4px}
@media(max-width:760px){.home-companion{width:165px}.home-companion-body{padding-top:29px}.home-companion-bubble{font-size:10px;max-width:132px;white-space:normal}.cat-note.cat-note-companion{min-height:150px;grid-template-columns:minmax(0,1fr) 55px}}
.home-companion-menu{position:absolute;width:min(288px,calc(100vw - 24px));padding:16px;border:1px solid var(--line,#e6ded3);border-radius:24px;background:var(--white,#fffefa);box-shadow:0 16px 40px #5e423526;pointer-events:auto;font:400 14px/20px var(--font-ui,sans-serif);animation:cat-menu-arrive .5s cubic-bezier(.22,1,.36,1)}
.home-cat-menu-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.home-cat-menu-heading strong{font-weight:600;font-size:16px;line-height:24px}.home-cat-menu-heading button{width:32px;height:32px;border-radius:8px;font-size:24px;color:var(--muted)}
.home-cat-choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.home-cat-choices button{display:flex;align-items:center;flex-direction:column;gap:8px;padding:12px 4px;border-radius:12px;font-size:12px;line-height:16px;white-space:nowrap;transition:transform .5s cubic-bezier(.22,1,.36,1),background-color .3s cubic-bezier(.22,1,.36,1)}
.home-cat-choices img{width:24px;height:24px;opacity:.8}.home-cat-choices button[aria-pressed=true]{background:var(--rose,#f3ded8);color:var(--red-dark,#853e38)}
.home-cat-choices button:hover,.home-cat-menu-heading button:hover{background:#eee7dd}.home-cat-choices button:active{transform:scale(.98)}
.home-cat-play-modes{display:grid;grid-template-columns:1.3fr 1fr;gap:8px;margin-top:16px}.home-cat-play-modes button{border:1px solid var(--line);border-radius:8px;padding:8px;font-size:12px;line-height:16px;min-height:40px}.home-cat-play-modes button[aria-pressed=true]{border-color:var(--red);background:var(--rose);color:var(--red-dark)}
.home-cat-playback{font-size:12px;line-height:16px;color:var(--muted);margin:12px 0}
.home-cat-menu-foot{display:flex;align-items:center;justify-content:space-between;gap:8px}.home-cat-menu-foot button,.home-cat-menu-foot a{min-height:32px;padding:8px 0;font-size:12px;line-height:16px;color:var(--red)}
.home-companion-stage{cursor:pointer}.home-companion-stage:focus-visible{outline-offset:-24px}
@keyframes cat-menu-arrive{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.home-companion-menu{animation:none}.home-cat-choices button{transition:background-color .3s cubic-bezier(.22,1,.36,1)}}

.home-cat-drag-hint{font-size:12px;line-height:16px;color:var(--muted);margin:12px 0 0}
.home-cat-choices [data-pose-choice=grab] img{transform:rotate(-45deg)}
.home-companion[data-dragging=true]{z-index:39}
.home-companion[data-dragging=true] .home-companion-stage{cursor:grabbing}
.home-cat-sound-row{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid var(--line);padding-top:8px}
.home-cat-sound-row button{display:flex;align-items:center;gap:6px;min-height:40px;font-size:12px;color:var(--red)}
.home-cat-sound-row img{width:18px;height:18px}.home-cat-sound-row>span{font-size:11px;color:var(--muted)}
.home-cat-sound-status{font-size:12px;line-height:1.5;color:var(--red);margin:4px 0 8px}
