/* NYAAS targeted live-room correction 2026-08-15
   Scope intentionally limited to the user-reported contact UI defects.
   Existing V10 behavior and already-correct visual areas are left intact. */

/* 1) Contact-room outer frame: preserve the supplied lace proportions.
   Edge motifs tile at their native aspect ratio instead of being stretched across the viewport. */
#room.room-screen::before{
  z-index:22!important;
  background-position:left bottom,right bottom,center top,center bottom,left center,right center!important;
  background-size:7.8vh 8.1vh,7.8vh 8.1vh,auto 4.55vh,auto 4.65vh,4.55vh auto,4.55vh auto!important;
  background-repeat:no-repeat,no-repeat,repeat-x,repeat-x,repeat-y,repeat-y!important;
  filter:drop-shadow(0 .16vh .28vh rgba(100,38,63,.09))!important;
}

/* 2) Bottom contact menu: keep it above the decorative frame and fully interactive. */
#room .quick-actions{
  z-index:62!important;
  bottom:4.45vh!important;
  pointer-events:auto!important;
}
#room .quick-actions .qa{pointer-events:auto!important;position:relative!important;z-index:1!important}
#room .quick-collapse-toggle{z-index:63!important;bottom:19.05vh!important;pointer-events:auto!important}
#room .quick-actions.collapsed + .quick-collapse-toggle{bottom:7.55vh!important}
/* Cheers must always carry a clear icon. */
#room .qa.cheers>span{display:block!important;visibility:visible!important;opacity:1!important;font-size:clamp(22px,2.55vh,30px)!important;line-height:1!important}

/* 3) Cast-name card: opaque white writing field inside the supplied frame. */
#room .room-name-card{isolation:isolate!important}
#room .room-name-card::before{
  z-index:0!important;
  left:4.65vh!important;right:2.35vh!important;top:3.35vh!important;bottom:1.9vh!important;
  background:#fff!important;
  border-radius:1.65vh!important;
  box-shadow:none!important;
}
#room .room-name-card>small,#room .room-name-card>div{position:relative!important;z-index:2!important}

/* 4) NYAA / TIME: smaller numerals with guaranteed inner clearance. */
#room .room-hud span{padding:.82vh 1.0vh .72vh!important}
#room .room-hud b{font-size:clamp(20px,2.22vh,27px)!important;letter-spacing:-.025em!important;max-width:100%!important}
#room .room-hud small{font-size:clamp(8px,.86vh,11px)!important;letter-spacing:.075em!important}

/* 5) Hamburger: move the label upward without changing the control itself. */
#room .room-hamburger::after{bottom:1.48vh!important;font-size:clamp(8px,.74vh,10px)!important}

/* 6) Music widget: center the vinyl spindle, increase separation from copy, and realign controls. */
#room .music-now{left:2.25vh!important;top:2.55vh!important;width:26.55vh!important;padding:.6vh .55vh .4vh 8.35vh!important}
#room .music-note-icon{
  left:.82vh!important;top:.82vh!important;width:5.45vh!important;height:5.45vh!important;
  background:radial-gradient(circle at 50% 50%,#ee5588 0 10%,#1d1c20 11% 31%,#09090a 32% 59%,#232328 60% 68%,#0d0d0e 69%)!important;
}
#room .music-copy b{max-width:17.0vh!important}
#room .music-room-controls{left:2.6vh!important;right:2.6vh!important;bottom:1.55vh!important;gap:.42vh!important}
#room .music-room-controls button{display:flex!important;align-items:center!important;justify-content:center!important;line-height:1!important}

/* 7) Milestone text: white text only on a subtle light-gray cushion. */
#room .first-text-burst{
  color:#fff!important;
  padding:.32em .62em!important;
  border-radius:.32em!important;
  background:rgba(90,90,96,.38)!important;
  -webkit-text-stroke:0!important;
  text-shadow:0 2px 5px rgba(35,35,40,.38)!important;
  box-shadow:0 .18em .55em rgba(25,25,30,.10)!important;
}
#room .first-text-burst::before,#room .first-text-burst::after{display:none!important;content:none!important}

/* 8) Support cards: remove inherited decorative/pseudo lines that cross the content. */
#menuOverlay .support-card{
  background:#fff!important;
  background-image:none!important;
  box-shadow:0 4px 10px rgba(77,39,55,.05)!important;
  overflow:hidden!important;
}
#menuOverlay .support-card::before,#menuOverlay .support-card::after,
#menuOverlay .support-card>*::before,#menuOverlay .support-card>*::after{display:none!important;content:none!important}

/* Compact-height protection: keep the menu above the lower frame even on smaller Intel-Mac windows. */
@media(max-height:760px){
  #room.room-screen::before{
    background-size:7.0vh 7.3vh,7.0vh 7.3vh,auto 4.15vh,auto 4.25vh,4.15vh auto,4.15vh auto!important;
  }
  #room .quick-actions{bottom:4.05vh!important}
  #room .quick-collapse-toggle{bottom:18.25vh!important}
  #room .quick-actions.collapsed + .quick-collapse-toggle{bottom:7.0vh!important}
  #room .room-hud b{font-size:clamp(18px,2.1vh,24px)!important}
}
/* Final micro-alignment after viewport QA: keep MENU label comfortably inside the round control. */
#room .room-hamburger::after{bottom:2.05vh!important}
