/* A játék külön lila felületet kap; a kijelölés kontrasztos mentazöld. */
.chat-egyezes { --egyezes-sotet: #48246b; --egyezes-szoveg: #43265b; --egyezes-keret: #d4c3e7; margin-top: 1rem; border: 1px solid var(--egyezes-keret); border-radius: .8rem; background: #f1eafa; color: var(--egyezes-szoveg); font: 400 .9rem/1.45 system-ui, sans-serif; min-width: 0; scroll-margin-top: .5rem; }
.chat-felulet #egyezes-indit { border-color: #cdb8e1; background: #eee5fa; color: #48246b; }
.chat-felulet #egyezes-indit:hover:not(:disabled) { border-color: #9d77be; background: #e0cff0; }
.chat-egyezes [hidden] { display: none !important; }
.egyezes-kapcsolo { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; width: 100%; min-height: 52px; margin: 0; padding: .8rem; border: 0; border-radius: .75rem .75rem 0 0; background: #48246b; color: #fff; text-align: left; font: 700 .9rem/1.4 system-ui, sans-serif; cursor: pointer; }
.egyezes-kapcsolo[aria-expanded="false"] { border-radius: .75rem; }
#egyezes-cim { min-width: 0; overflow-wrap: anywhere; align-self: center; }
.egyezes-rovid { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .65rem; min-height: 24px; margin-left: auto; font-size: .8rem; font-variant-numeric: tabular-nums; }
#egyezes-ido:empty, #egyezes-haladas:empty { display: none; }
#egyezes-haladas { color: #e1cff7; }
#egyezes-nyil { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid #ffffff50; border-radius: 50%; font-size: 1.05rem; line-height: 1; }
.egyezes-tartalom { padding: .85rem; }
.egyezes-leiras { margin: 0 0 .65rem; color: #665174; font-size: .8rem; }
.egyezes-kerdesek { max-height: min(52dvh, 480px); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #b69acc #e9dff4; margin-bottom: .85rem; padding-right: .3rem; }
.egyezes-kerdes { min-width: 0; margin: 0 0 .9rem; padding: 0 0 .9rem; border: 0; border-bottom: 1px solid #d9c9ea; }
.egyezes-kerdes:last-child { margin-bottom: 0; border-bottom: 0; padding-bottom: 0; }
.egyezes-kerdes legend { float: none; width: auto; margin: 0 0 .5rem; padding: 0; color: #48246b; font-size: .88rem; font-weight: 700; }
.egyezes-valaszok { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
.egyezes-valasz { display: flex; align-items: center; gap: .5rem; min-height: 46px; margin: 0; padding: .6rem; border: 1px solid #cdb8e1; border-radius: .6rem; background: #f8f3ff; color: #43265b; cursor: pointer; overflow-wrap: anywhere; font-size: .82rem; line-height: 1.4; }
.egyezes-valasz:hover:has(input:not(:disabled):not(:checked)) { border-color: #8864a9; background: #e9ddf7; }
.egyezes-valasz:has(input:checked) { border-color: #087d67; background: #9debd9; color: #134e41; box-shadow: inset 0 0 0 1px #087d67; font-weight: 600; }
.egyezes-valasz input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: #087d67; }
.egyezes-valasz:has(input:disabled) { cursor: default; }
.egyezes-gombsor { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.egyezes-gomb { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; max-width: 100%; margin: 0; border: 1px solid #b99bd3; border-radius: .6rem; padding: .55rem .85rem; background: #e2d2f2; color: #43215f; font: 600 .82rem/1.35 system-ui, sans-serif; text-align: center; vertical-align: middle; cursor: pointer; touch-action: manipulation; }
.egyezes-gomb:hover:not(:disabled) { border-color: #8d66ad; background: #d5bfea; }
#egyezes-kesz:not(:disabled) { border-color: #48246b; background: #48246b; color: #fff; }
#egyezes-kesz:hover:not(:disabled) { background: #61318b; }
.egyezes-gomb:disabled { opacity: .55; cursor: default; }
.egyezes-mellekes { background: transparent; color: #665174; }
.chat-felulet #messages .egyezes-kartya { margin: .6rem 0; padding: .7rem; border: 1px solid #cdb8e1; border-radius: .65rem; background: #eee5fa; color: #4c2a68; overflow-wrap: anywhere; font: 400 .8rem/1.45 system-ui, sans-serif; }
.egyezes-kartya .egyezes-leiras { margin-top: .3rem; color: #665174; }
.egyezes-kartya strong { font-weight: 800; }
.egyezes-kartya .egyezes-reszletek { display: flex; margin-top: .5rem; }
.egyezes-osszegzes { margin: 0 0 .85rem; color: #48246b; font-weight: 800; }
.egyezes-eredmenysor { margin-bottom: .8rem; padding-bottom: .8rem; border-bottom: 1px solid #d9c9ea; font-size: .82rem; }
.egyezes-eredmenysor p { margin: .35rem 0; }
.egyezes-jatekos { display: inline-block; min-width: 5.1em; margin-right: .25rem; color: #48246b; font-weight: 800; }
.egyezes-jatekos-partner { color: #12614f; }
.egyezes-talalat { color: #12614f; font-weight: 700; }
.egyezes-elteres { color: #b42335; font-weight: 700; }
.egyezes-hiba { margin: .5rem .85rem .85rem; color: #982544; font-size: .82rem; }
.egyezes-surget { color: #ffe090; }
.chat-egyezes button:focus-visible, .egyezes-kartya button:focus-visible, .egyezes-valasz:focus-within { outline: 3px solid #aa78d4; outline-offset: 2px; }
/* A vezérlőknek mindig természetes helyük van: rövid ablaknál sem lógnak a fejlécbe. */
.chat-felulet.egyezes-nyitva:has(#media-panel-tartalom[hidden]) #chat-content { height: auto; }
.chat-felulet.egyezes-nyitva:has(#media-panel-tartalom[hidden]) #messages { flex: 0 0 auto; height: clamp(105px, 18dvh, 180px); }
@media (max-width: 575.98px) {
  .egyezes-valaszok { grid-template-columns: 1fr; }
  .egyezes-valasz { min-height: 46px; }
  .egyezes-tartalom { padding: .65rem; }
  .egyezes-kapcsolo { gap: .5rem; padding: .7rem .65rem; }
  .egyezes-rovid { gap: .45rem; }
  .egyezes-kerdesek { max-height: min(35dvh, 300px); }
}
#egyezes-sugo[hidden] { display: none !important; }
