/* v675 — scoped authority patch. No Avatar Room layout changes. */

/* Global Familiar AI circle is a real member of the existing Book + music dock. */
body:not(.avatar-page):not(.avatar-room-page):not(.gg-salon-room-v206) .gg-book-music-dock-v669 > .gg-familiar-trigger-v339.gg-v675-in-music-dock{
  position:relative!important;inset:auto!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;transform:none!important;
  flex:0 0 48px!important;width:48px!important;min-width:48px!important;height:48px!important;min-height:48px!important;margin:0!important;padding:2px!important;
  display:grid!important;place-items:center!important;border-radius:50%!important;overflow:hidden!important;z-index:auto!important;
  border:2px solid rgba(215,176,91,.82)!important;background:linear-gradient(180deg,#f5f6f8 0%,#c9cdd4 52%,#eef0f3 100%)!important;
  box-shadow:inset 0 2px 0 rgba(255,255,255,.9),0 5px 12px rgba(0,0,0,.2)!important;pointer-events:auto!important;touch-action:manipulation!important;
}
.gg-active-familiar-icon-v675{position:relative;width:42px;height:42px;display:grid;place-items:center;overflow:hidden;border-radius:50%;pointer-events:none}
.gg-active-familiar-icon-v675 .gg-familiar-avatar-v339{position:absolute!important;left:50%!important;top:50%!important;width:112px!important;height:112px!important;transform:translate(-50%,-50%) scale(.37)!important;transform-origin:center!important;pointer-events:none!important}
.gg-active-familiar-icon-v675 .pet-hover{animation:none!important;pointer-events:none!important}

/* Avatar Studio: Door + current Familiar AI top-left, Dice top-right. */
body.avatar-page #ggV580CornerTools{left:12px!important;right:auto!important;top:12px!important;z-index:151!important;display:flex!important;gap:8px!important}
body.avatar-page #ggV580CornerTools .gg-familiar-trigger-v339.gg-active-familiar-trigger-v675{position:static!important;inset:auto!important;transform:none!important;overflow:hidden!important;padding:2px!important}
body.avatar-page #ggV580CornerTools .gg-active-familiar-icon-v675{width:48px!important;height:48px!important}
body.avatar-page #ggV580CornerTools .gg-active-familiar-icon-v675 .gg-familiar-avatar-v339{width:112px!important;height:112px!important;transform:translate(-50%,-50%) scale(.40)!important}
body.avatar-page #avatarStage>.gg-dice-anchor-v339.gg-v675-dice-corner{position:absolute!important;top:12px!important;right:12px!important;left:auto!important;bottom:auto!important;z-index:152!important;display:block!important;margin:0!important;transform:none!important}
body.avatar-page #avatarStage>.gg-dice-anchor-v339.gg-v675-dice-corner #randomizeBtn{position:static!important;inset:auto!important;margin:0!important;width:54px!important;height:54px!important;min-width:54px!important;min-height:54px!important;border-radius:17px!important}

/* Avatar Room pet is interaction-only. AI visuals/handlers have no pointer authority here. */
body.avatar-room-page:not(.gg-salon-room-v206) #ggFamiliarRoomHostV339{cursor:pointer!important;pointer-events:auto!important;touch-action:manipulation!important}
body.avatar-room-page:not(.gg-salon-room-v206) #avatarRoom :is(#ggAiPetV370,.gg-ai-helper-v370,.gg-ai-pet-preview,[data-ai-pet-preview]){display:none!important;pointer-events:none!important}

/* Room mode colors. These selectors only recolor existing cards; geometry/order/placement is untouched. */
body.avatar-room-page:not(.gg-salon-room-v206)[data-gg-room-mode="basic"]{--gg-room-card-bg:linear-gradient(180deg,#fff 0%,#e4e8ed 48%,#b9c0c9 100%);--gg-room-card-fg:#111318;--gg-room-card-border:#8e959e}
body.avatar-room-page:not(.gg-salon-room-v206)[data-gg-room-mode="unlocked"]{--gg-room-card-bg:linear-gradient(180deg,#f7dd79 0%,#ddb94f 56%,#bc8f28 100%);--gg-room-card-fg:#111318;--gg-room-card-border:#9a7624}
body.avatar-room-page:not(.gg-salon-room-v206)[data-gg-room-mode="purchased"]{--gg-room-card-bg:linear-gradient(180deg,#c990ff 0%,#9c57db 54%,#7131a8 100%);--gg-room-card-fg:#fff;--gg-room-card-border:#5d268b}
body.avatar-room-page:not(.gg-salon-room-v206)[data-gg-room-mode] #ggRoomEditBelowV658 :is(.room-category-icon,.room-option-chip){
  background:var(--gg-room-card-bg)!important;background-image:var(--gg-room-card-bg)!important;color:var(--gg-room-card-fg)!important;border-color:var(--gg-room-card-border)!important;
}
body.avatar-room-page:not(.gg-salon-room-v206)[data-gg-room-mode] #ggRoomEditBelowV658 :is(.room-category-icon,.room-option-chip) :is(span,b,strong,small,i,svg){color:var(--gg-room-card-fg)!important;fill:currentColor;stroke:currentColor}
body.avatar-room-page:not(.gg-salon-room-v206)[data-gg-room-mode] #ggRoomEditBelowV658 :is(.room-category-icon.active,.room-option-chip.selected){box-shadow:0 0 0 2px color-mix(in srgb,var(--gg-room-card-border) 72%,transparent),inset 0 2px 0 rgba(255,255,255,.4)!important}

/* Darker forged-metal gothic scissors for Sun-mode flying background decorations. */
html[data-gg-site-theme="sun"] .gg-atmosphere-item.scissor .gg-gothic-scissors-v674 .blade,
html:not([data-gg-site-theme="moon"]) .gg-atmosphere-item.scissor .gg-gothic-scissors-v674 .blade{stroke:#1b1a20!important;stroke-width:3!important;filter:drop-shadow(0 1px 0 #6d5b32)}
html[data-gg-site-theme="sun"] .gg-atmosphere-item.scissor .gg-gothic-scissors-v674 .bone,
html:not([data-gg-site-theme="moon"]) .gg-atmosphere-item.scissor .gg-gothic-scissors-v674 .bone{fill:#d7d0c2!important;stroke:#17161b!important;stroke-width:2.3!important}
html[data-gg-site-theme="sun"] .gg-atmosphere-item.scissor .gg-gothic-scissors-v674 .dark,
html:not([data-gg-site-theme="moon"]) .gg-atmosphere-item.scissor .gg-gothic-scissors-v674 .dark{fill:#151419!important;stroke:#b58d35!important;stroke-width:1.7!important}
html[data-gg-site-theme="sun"] .gg-atmosphere-item.scissor .gg-gothic-icon-v674,
html:not([data-gg-site-theme="moon"]) .gg-atmosphere-item.scissor .gg-gothic-icon-v674{filter:drop-shadow(0 2px 2px rgba(0,0,0,.38))!important;pointer-events:none!important;user-select:none!important}

@media(max-width:680px){
  body:not(.avatar-page):not(.avatar-room-page):not(.gg-salon-room-v206) .gg-book-music-dock-v669 > .gg-familiar-trigger-v339.gg-v675-in-music-dock{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important}
  body:not(.avatar-page):not(.avatar-room-page):not(.gg-salon-room-v206) .gg-book-music-dock-v669 > .gg-familiar-trigger-v339.gg-v675-in-music-dock .gg-active-familiar-icon-v675{width:39px!important;height:39px!important}
}


/* Goldie's Salon host-only Familiar placement: farther left and higher, without moving other pages. */
body.gg-salon-room-v206 #avatarRoom #ggFamiliarRoomHostV339{left:13%!important;top:7%!important;bottom:auto!important;z-index:1900!important}

/* v615 atmosphere uses gg-float-v615, so make the actual flying scissors use the gothic art too. */
html[data-gg-site-theme="sun"] .gg-float-v615.scissor .gg-gothic-scissors-v674 .blade,
html:not([data-gg-site-theme="moon"]) .gg-float-v615.scissor .gg-gothic-scissors-v674 .blade{stroke:#151419!important;stroke-width:3.2!important}
html[data-gg-site-theme="sun"] .gg-float-v615.scissor .gg-gothic-scissors-v674 .bone,
html:not([data-gg-site-theme="moon"]) .gg-float-v615.scissor .gg-gothic-scissors-v674 .bone{fill:#d8d0c0!important;stroke:#141318!important;stroke-width:2.4!important}
html[data-gg-site-theme="sun"] .gg-float-v615.scissor .gg-gothic-scissors-v674 .dark,
html:not([data-gg-site-theme="moon"]) .gg-float-v615.scissor .gg-gothic-scissors-v674 .dark{fill:#17161b!important;stroke:#ad8733!important;stroke-width:1.8!important}
.gg-float-v615.scissor .gg-gothic-icon-v674{width:1.55em!important;height:1.55em!important;filter:drop-shadow(0 2px 2px rgba(0,0,0,.4))!important}


/* v677 — larger, readable Familiar thumbnails in both mirror locations. */
.gg-active-familiar-icon-v675 .gg-familiar-avatar-v339{width:128px!important;height:128px!important;transform:translate(-50%,-50%) scale(.52)!important;transform-origin:center!important}
.gg-active-familiar-icon-v675 .gg-familiar-avatar-v339>.pet-hover{width:108px!important;height:108px!important;display:grid!important;place-items:center!important;animation:none!important}
.gg-active-familiar-icon-v675 .gg-familiar-avatar-v339>.pet-hover>svg{width:108px!important;height:108px!important;max-width:none!important;max-height:none!important}
body.avatar-page #ggV580CornerTools .gg-active-familiar-icon-v675{width:54px!important;height:54px!important}
body.avatar-page #ggV580CornerTools .gg-active-familiar-icon-v675 .gg-familiar-avatar-v339{transform:translate(-50%,-50%) scale(.60)!important}
body.avatar-page #ggV580CornerTools .gg-familiar-trigger-v339.gg-active-familiar-trigger-v675{width:54px!important;height:54px!important;min-width:54px!important;min-height:54px!important;padding:0!important}
body:not(.avatar-page):not(.avatar-room-page):not(.gg-salon-room-v206) .gg-book-music-dock-v669>.gg-familiar-trigger-v339.gg-v675-in-music-dock .gg-active-familiar-icon-v675{width:44px!important;height:44px!important}
body:not(.avatar-page):not(.avatar-room-page):not(.gg-salon-room-v206) .gg-book-music-dock-v669>.gg-familiar-trigger-v339.gg-v675-in-music-dock .gg-familiar-avatar-v339{transform:translate(-50%,-50%) scale(.50)!important}
@media(max-width:680px){
 body.avatar-page #ggV580CornerTools .gg-familiar-trigger-v339.gg-active-familiar-trigger-v675{width:54px!important;height:54px!important;min-width:54px!important;min-height:54px!important}
 body.avatar-page #ggV580CornerTools .gg-active-familiar-icon-v675{width:48px!important;height:48px!important}
 body:not(.avatar-page):not(.avatar-room-page):not(.gg-salon-room-v206) .gg-book-music-dock-v669>.gg-familiar-trigger-v339.gg-v675-in-music-dock{display:grid!important;visibility:visible!important;opacity:1!important}
}
