/* Room rules ("How rooms work"), join hint, watcher badge, How to Play "Playing online". Kid-friendly, compact, icon-led. */
.rh-card { border: 2px solid rgba(133, 77, 14, .14); background: #fffbeb; border-radius: 18px; padding: 4px 12px 10px; margin: 0 0 12px; color: #713f12; }
.rh-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0 6px; background: none; border: 0; cursor: pointer; color: #713f12; text-align: left; }
.rh-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; letter-spacing: .2px; }
.rh-title .rh-dot { width: 22px; height: 22px; border-radius: 999px; background: #713f12; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; font-family: Georgia, serif; font-style: italic; }
.rh-toggle { font-size: 12px; font-weight: 800; color: #854d0e; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; }
.rh-toggle:hover, .rh-head:focus-visible .rh-toggle { background: rgba(133, 77, 14, .08); }
.rh-chev { display: inline-block; transition: transform .18s; }
.rh-card.is-collapsed .rh-chev { transform: rotate(-90deg); }
.rh-card.is-collapsed .rh-list { display: none; }
.rh-card.is-collapsed { padding-bottom: 4px; }
.rh-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rh-list li { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 8px; font-size: 13px; line-height: 1.3; }
.rh-ic { width: 30px; height: 30px; border-radius: 10px; background: #fff; border: 1.5px solid rgba(133, 77, 14, .14); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; }
.rh-list b { font-weight: 800; }
.rh-list .rh-sub { color: rgba(113, 63, 18, .82); }
.rh-key { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 9px 12px; border-radius: 14px; font-size: 13px; font-weight: 800; line-height: 1.3; }
.rh-key .rh-ic { flex: 0 0 auto; width: 26px; height: 26px; font-size: 14px; border: 0; }
.rh-key.is-host { background: #fef3c7; border: 2px solid #f59e0b; color: #78350f; }
.rh-key.is-host .rh-ic { background: #f59e0b; }
.rh-key.is-player { background: #ecfdf5; border: 2px solid #34d399; color: #065f46; }
.rh-key.is-player .rh-ic { background: #a7f3d0; }
/* Join screen hint (one line under the room code) */
.rh-join-hint { display: flex; align-items: center; gap: 8px; margin-top: -2px; padding: 8px 10px; border-radius: 12px; font-size: 12.5px; font-weight: 800; line-height: 1.3; }
.rh-join-hint .rh-ic { width: 24px; height: 24px; font-size: 13px; border: 0; background: rgba(255, 255, 255, .7); flex: 0 0 auto; }
.rh-join-hint.is-ok { background: #ecfdf5; color: #065f46; }
.rh-join-hint.is-watch { background: #eff6ff; color: #1e3a8a; border: 1.5px solid #93c5fd; }
.rh-join-hint.is-warn { background: #fef2f2; color: #991b1b; }
.rh-join-hint.is-info { background: #fffbeb; color: #713f12; }
/* Watcher badge on the game screen */
.rh-watch { display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin-bottom: 8px; border-radius: 16px; background: #eff6ff; border: 2px solid #93c5fd; color: #1e3a8a; }
.rh-watch .rh-ic { width: 34px; height: 34px; font-size: 18px; background: #fff; border-color: #bfdbfe; flex: 0 0 auto; }
.rh-watch-title { display: inline-block; font-weight: 900; font-size: 13px; letter-spacing: .4px; text-transform: uppercase; padding: 1px 8px; border-radius: 999px; background: #2563eb; color: #fff; }
.rh-watch-sub { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 700; line-height: 1.3; color: #1e3a8a; }
/* How to Play: Playing online */
.rh-howto { border-top: 2px dashed rgba(133, 77, 14, .2); padding-top: 14px; margin-top: 2px; }
.rh-howto h4 { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 15px; margin: 0 0 10px; color: #713f12; }
.rh-howto .rh-key { margin: 10px 0 0; }
@media (min-width: 640px) {
  .rh-list li { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) { .rh-chev { transition: none; } }
