.chat-games { flex: 0 0 auto; min-width: 0; position: relative; color: var(--text, #eee); }
.games-toggle { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 32px; padding: 5px 12px; border: 0; border-bottom: 1px solid var(--border, #393039); background: #211a25; color: #eee; cursor: pointer; font: 700 12px/1.3 system-ui, sans-serif; }
.games-summary { flex: 1; min-width: 0; text-align: left; font-weight: 400; color: #cbb9d1; }
.games-panel { position: absolute; z-index: 35; right: 10px; top: 36px; width: min(380px, calc(100vw - 30px)); max-height: min(70dvh, 620px); padding: 14px; overflow-y: auto; border: 1px solid #65516c; border-radius: 12px; background: #1b1520; box-shadow: 0 12px 40px #0008; font: 13px/1.5 system-ui, sans-serif; }
.chat-games [hidden] { display: none !important; }
.games-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.games-panel-header h2 { margin: 0; font-size: 17px; }
.games-panel button { min-height: 36px; padding: 7px 10px; border: 1px solid #695274; border-radius: 8px; background: #33233d; color: #fff; font: 600 12px/1.3 system-ui, sans-serif; cursor: pointer; }
.games-panel button:hover, .games-panel button:focus-visible { background: #523160; }
.games-panel button:disabled { opacity: .5; cursor: default; }
.games-panel button.is-active, .games-panel button.is-selected { background: #73448c; border-color: #c9a0da; }
.games-mode-buttons, .games-action-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0; }
.games-mode-buttons button { flex: 1 1 130px; }
.games-card { margin-top: 12px; padding: 13px; border: 1px solid #4b3954; border-radius: 10px; background: #251b2c; }
.games-question { font-size: 16px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; margin: 0 0 12px; }
.games-caption { color: #ccbcd2; font-size: 12px; margin: 7px 0; overflow-wrap: anywhere; }
.games-note { font-size: 11px; color: #baabc1; margin: 10px 0 0; }
.games-feedback { min-height: 18px; margin: 8px 0 0; color: #f0cdad; }
.games-results progress { display: block; width: 100%; height: 10px; accent-color: #c18dd4; margin: 3px 0 10px; }
.games-suggest-form { display: grid; gap: 8px; margin-top: 10px; }
.games-suggest-form label { font-size: 12px; }
.games-suggest-form textarea { box-sizing: border-box; width: 100%; min-height: 65px; resize: vertical; padding: 8px; border: 1px solid #695274; border-radius: 8px; background: #120f15; color: #eee; font: 13px/1.4 system-ui, sans-serif; }
.games-back-general { display: none; }
:root[data-theme="light"] .games-toggle { background: #eee3f3; color: #302037; }
:root[data-theme="light"] .games-panel { background: #faf5fc; color: #302037; }
:root[data-theme="light"] .games-card { background: #f0e6f5; }
:root[data-theme="light"] .games-caption, :root[data-theme="light"] .games-note, :root[data-theme="light"] .games-summary { color: #65506e; }
:root[data-theme="light"] .games-suggest-form textarea { background: #fff; color: #302037; }
:root[data-theme="light"] .games-feedback { color: #755029; }
@media (max-width: 768px) {
  .mobile-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .mobile-nav__button { padding-inline: 2px; font-size: 11px; }
  .chat-games { display: none; }
  .mobile-view-games .chat-games { display: flex; flex: 1 1 auto; min-height: 0; flex-direction: column; }
  .mobile-view-games .games-toggle { display: none; }
  .mobile-view-games .games-panel { position: static; box-sizing: border-box; width: 100%; max-height: none; min-height: 0; flex: 1 1 auto; border: 0; border-radius: 0; box-shadow: none; padding: 12px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .mobile-view-games .conversation-stack, .mobile-view-games .system-feed, .mobile-view-games .smile-bar,
  .mobile-view-games .tools-container, .mobile-view-games .mod-panel, .mobile-view-games .chat-footer,
  .mobile-view-games .kennel-view, .mobile-view-games .chat-radio { display: none !important; }
  .games-back-general { display: inline-block; }
}

.is-kennel-room .chat-games { display: none; }
