.contact-link { display:inline-flex; align-items:center; flex-shrink:0; padding:6px 0; min-height:32px; color:inherit; font:12px/1.5 Arial,sans-serif; letter-spacing:normal; text-underline-offset:3px; white-space:nowrap; }
@media(pointer:coarse) { .contact-link { min-height:44px; } }
@media(min-width:1000px) and (min-height:500px) {
 .in-game { --contact-reserve:46px; }
 .in-game:lang(ja) { --contact-reserve:74px; }
 .in-game .contact-link { font-size:11px; min-height:24px; padding:2px 0; }
 .in-game .view-controls { right:calc(250px + var(--contact-reserve)); }
}
@media(min-width:1000px) and (max-width:1199px) and (min-height:500px) {
 .in-game:has(.room-back) .brand-kami { font-size:18px; }
 .in-game:has(.room-back) .brand-amp { font-size:13px; }
 .in-game:has(.room-back) .brand-friends { width:68px; }
}
@media(orientation:landscape) and (min-width:560px) and (width < 1000px),
       (orientation:landscape) and (min-width:560px) and (height < 500px) {
 .in-game { --contact-reserve:44px; }
 .in-game:lang(ja) { --contact-reserve:72px; }
 .in-game .contact-link { font-size:11px; min-height:28px; padding:2px 0; }
 .in-game .view-controls { right:max(calc(205px + var(--contact-reserve)),calc(201px + var(--contact-reserve) + env(safe-area-inset-right))); }
}
@media(orientation:landscape) and (701px <= width < 1000px) {
 .in-game:has(.room-back) .brand .brand-mark { display:none; }
}
/* À faible largeur, deux rangées gardent marque, Contact et commandes accessibles. */
@media(orientation:landscape) and (560px <= width <= 700px) {
 .in-game:has(.room-back) .brand { visibility:visible; }
 .in-game .topbar { height:84px; align-items:flex-start; padding-top:0; }
 .in-game .brand-headline { gap:5px 8px; }
 .in-game .brand { min-height:40px; }
 .in-game .view-controls { top:42px; left:6px; right:6px; justify-content:flex-end; }
 .in-game .view-controls details[open] { top:86px; max-height:calc(100dvh - 94px); }
 .in-game>main { top:86px; }
 .in-game main>.notice { top:86px; }
 .in-game .access-panel { top:90px; max-height:calc(100dvh - 98px); }
}
@media(orientation:landscape) and (560px <= width <= 700px) and (height < 320px) {
 .in-game .topbar { height:64px; }
 .in-game .brand { min-height:30px; }
 .in-game .view-controls { top:32px; }
 .in-game .view-controls details[open] { top:66px; max-height:calc(100dvh - 74px); }
 .in-game>main { top:66px; }
 .in-game main>.notice { top:66px; }
 .in-game .access-panel { top:70px; max-height:calc(100dvh - 78px); }
}
@media(orientation:landscape) and (701px <= width <= 840px) {
 .in-game:has(.room-back) .topbar { height:84px; align-items:flex-start; padding-top:0; }
 .in-game:has(.room-back) .brand { min-height:40px; }
 .in-game:has(.room-back) .view-controls { top:42px; left:6px; right:6px; justify-content:flex-end; }
 .in-game:has(.room-back) .view-controls details[open] { top:86px; max-height:calc(100dvh - 94px); }
 .in-game:has(.room-back)>main { top:86px; }
 .in-game:has(.room-back) main>.notice { top:86px; }
 .in-game:has(.room-back) .access-panel { top:90px; max-height:calc(100dvh - 98px); }
}
@media(orientation:landscape) and (701px <= width <= 840px) and (height < 320px) {
 .in-game:has(.room-back) .topbar { height:64px; }
 .in-game:has(.room-back) .brand { min-height:30px; }
 .in-game:has(.room-back) .view-controls { top:32px; }
 .in-game:has(.room-back) .view-controls details[open] { top:66px; max-height:calc(100dvh - 74px); }
 .in-game:has(.room-back)>main { top:66px; }
 .in-game:has(.room-back) main>.notice { top:66px; }
 .in-game:has(.room-back) .access-panel { top:70px; max-height:calc(100dvh - 78px); }
}
