/* V0.11 P6.1 hotfix: minimal UI leaves the D-Mon artwork visible. */
.featured-stage.v011-companion-stage .v011-companion-tapzone{
 position:absolute;z-index:3;left:23%;width:54%;top:26%;bottom:29%;
 background:transparent;border:0;border-radius:35%;cursor:pointer;
 touch-action:manipulation;-webkit-tap-highlight-color:transparent
}
.featured-stage.v011-companion-stage .v011-companion-tapzone:focus-visible{
 outline:2px solid #b6f8e3;outline-offset:4px;background:rgba(255,255,255,.04)
}
/* Compact dialogue beneath the character and just above the three actions. */
.featured-stage.v011-companion-stage .v011-companion-bubble{
 position:absolute;z-index:6;top:auto;bottom:73px;left:50%;right:auto;
 transform:translateX(-50%);box-sizing:border-box;
 width:max-content;max-width:calc(100% - 30px);min-width:min(55%,220px);min-height:41px;
 display:grid;align-items:center;padding:9px 14px;
 border-radius:17px;border:1px solid rgba(190,247,233,.46);
 background:rgba(8,30,43,.76);color:#f4fcff;
 font-size:12px;font-weight:600;line-height:1.4;text-align:center;
 text-shadow:0 1px 5px rgba(0,0,0,.64);box-shadow:0 5px 21px rgba(0,0,0,.2);
 backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);pointer-events:none
}
.featured-stage.v011-companion-stage .v011-companion-bubble span{
 display:block;max-height:4.2em;overflow:hidden;overflow-wrap:anywhere
}
/* Talk / change / details use identical compact pill geometry and typography. */
.featured-stage.v011-companion-stage .v011-companion-actions{
 position:absolute;z-index:7;left:12px;right:12px;bottom:13px;min-width:0;
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px
}
.featured-stage.v011-companion-stage .v011-companion-actions button{
 position:relative;inset:auto;left:auto;bottom:auto;transform:none;
 box-sizing:border-box;display:block;width:100%;min-width:0;min-height:43px;
 margin:0;padding:10px 5px;border-radius:999px;
 border:1px solid rgba(255,255,255,.28);
 background:rgba(4,14,22,.68);color:white;
 font:inherit;font-weight:900;font-size:11px;line-height:1.25;text-align:center;
 cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.22);
 backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
 touch-action:manipulation
}
.featured-stage.v011-companion-stage .v011-companion-actions .featured-detail{
 position:relative;left:auto;bottom:auto;transform:none;margin:0;z-index:auto
}
.featured-stage.v011-companion-stage .v011-companion-actions button:focus-visible{
 outline:2px solid #a5ffe2;outline-offset:2px
}
.featured-stage.v011-companion-stage .v011-companion-actions button:active{background:rgba(34,100,103,.85)}
/* Previously bottom-right, the existing transfiguration fullscreen icon
 would overlap Details; move it clear of the new row. */
.featured-stage.v011-companion-transfigured .v07-home-fullscreen-btn{
 top:116px!important;right:10px!important;bottom:auto!important
}
.featured-stage.v011-companion-reacted .v011-companion-bubble{animation:v011CompanionGlow .66s ease-out}
@keyframes v011CompanionGlow{
 0%{border-color:#fff;box-shadow:0 0 0 0 rgba(113,243,191,.6)}
 100%{border-color:rgba(190,247,233,.46);box-shadow:0 0 0 12px rgba(113,243,191,0)}
}
@media(max-width:390px){
 .featured-stage.v011-companion-stage .v011-companion-bubble{
  bottom:73px;max-width:calc(100% - 20px);font-size:11px;padding:8px 10px
 }
 .featured-stage.v011-companion-stage .v011-companion-actions{left:9px;right:9px;gap:5px}
 .featured-stage.v011-companion-stage .v011-companion-actions button{font-size:10px;padding:9px 3px}
}
@media(prefers-reduced-motion:reduce){
 .featured-stage.v011-companion-reacted .v011-companion-bubble{animation:none}
}

/* P6.2B: choices appear only during an active, player-initiated story. */
.featured-stage.v011-companion-stage .v011-companion-bubble:has([data-companion-choices]:not([hidden])){
 width:min(94%,410px);max-width:calc(100% - 18px);padding:8px 9px;background:rgba(8,30,43,.88)
}
.featured-stage.v011-companion-stage .v011-companion-bubble:has([data-companion-choices]:not([hidden])) span{
 max-height:5.6em
}
.featured-stage.v011-companion-stage .v011-companion-choices{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-top:7px;pointer-events:auto
}
.featured-stage.v011-companion-stage .v011-companion-choices[hidden]{display:none!important}
.featured-stage.v011-companion-stage .v011-companion-choices button{
 border:1px solid rgba(187,247,221,.6);border-radius:999px;min-height:36px;
 padding:5px 6px;background:rgba(42,99,96,.92);color:#fff;
 font:inherit;font-size:11px;font-weight:800;line-height:1.2;text-align:center;
 cursor:pointer;touch-action:manipulation
}
.featured-stage.v011-companion-stage .v011-companion-choices button:focus-visible{outline:2px solid white;outline-offset:2px}
