/* HAHUMI 7.14 — phone room fits one screen; small fixes from the five-expert audit (23.10.2026).
 * Presentation only: no game state, storage, rig or motion code. */

/* Gift shelf: no blurred rectangle behind the gifts (audit: «ореол вокруг подарка») */
.photo617 .souv614,.souv614{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}

/* Visible keyboard focus on headings and switches (WCAG 2.4.7) */
.switch-row input:focus-visible,.switch-row button:focus-visible,[role=switch]:focus-visible{outline:2px solid var(--forest,#234C3A)!important;outline-offset:3px}

@media (max-width:740px){
  /* Compact room header: the hero, the care dock and the start of the chat fit above the bottom nav */
  #homeView .hero-heading.two{padding-bottom:8px}
  #homeView .hero-heading.two h1{font-size:clamp(22px,6.4vw,27px);line-height:1.1}
  #homeView .hero-heading.two #heroDescription{font-size:13.5px;line-height:1.35;margin-top:4px;
    display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
  /* Neighbours (two or more heroes): one swipeable row of chips instead of three wrapped rows.
     «На улицу» then duplicates «Улица» in the bottom nav. A first-time visitor (one hero)
     keeps the wrapped row with «На улицу» and the neighbours note. */
  #homeView .switch622:has(.switch622-hero){flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;
    scroll-snap-type:x proximity;margin:10px -16px 0;padding:2px 16px 6px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  #homeView .hero-heading.two,#homeView .hero-heading.two>div{min-width:0;max-width:100%}
  #homeView .switch622::-webkit-scrollbar{display:none}
  #homeView .switch622:has(.switch622-hero)>*{flex:0 0 auto;scroll-snap-align:start}
  #homeView .switch622-hero{min-height:44px}
  #homeView .switch622:has(.switch622-hero) .switch622-add{display:none}
  /* While typing, the keyboard owns the bottom: the nav steps aside so the input is never covered */
  body:has(#chatInput:focus) .nav-list,body:has(#jokeText612:focus) .nav-list{display:none}
}

/* Secondary text reaches WCAG AA 4.5:1 on paper (was ~2.5:1); the two greys keep their order */
:root{--ink-2:rgba(31,58,46,.82);--ink-3:rgba(31,58,46,.72)}

/* 7.16: the empty chat invites a first line instead of a second greeting */
.chat716-hint{margin:auto 0 4px;padding:10px 4px;color:var(--ink-3);font-size:14px;line-height:1.4;text-align:center}

/* 7.18 Friends: the local rehearsal needs no consent ticks (both heroes are yours);
   the «coming soon» duel poster goes below the working scene */
#friendsView .pair63-consents{display:none}
#friendsView{display:flex;flex-direction:column}
#friendsView>.friends-poster{order:10}
