/* ── 2026-11-26: nyitóoldal (user: „a Hogyan működik kerüljön egy kis sávba, látszódjon a
   belépő és a szép háttér; picit átlátszóbb panel”) — asztalon/tableten a belépő középen,
   alatta egy keskeny, áttetsző 4 lépéses sáv; telefonon (≤768px) marad a régi elrendezés. ── */
@media (min-width:769px){
  /* 11-27: a belépő fix helyen, kicsit feljebb — a lenyíló sáv nyitásakor NEM ugrik meg */
  #authOverlay{flex-direction:column;justify-content:flex-start;align-items:center;gap:.6rem}
  #authOverlay > #authBox{margin-top:clamp(.5rem,3vh,2rem)}
  #authOverlay > .mx-auth-show{margin-bottom:1.5rem}
  #authOverlay #authBox{
    background:rgba(33,28,22,.64);
    -webkit-backdrop-filter:blur(5px);backdrop-filter:blur(6px);
    border-color:rgba(201,170,110,.35);box-shadow:0 4px 18px rgba(0,0,0,.2);
    padding:1.6rem 2rem;max-width:25rem
  }
  #authOverlay #authBox > img{width:4.6rem!important;height:4.6rem!important;margin-bottom:.4rem!important}
  #authOverlay .mx-auth-show{
    order:1;flex:0 0 auto;width:100%;max-width:17rem;
    padding:.45rem 1.1rem;border-radius:999px;
    background:rgba(28,23,17,.74);
    -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(5px);
    border:1px solid rgba(201,170,110,.3);box-shadow:0 3px 12px rgba(0,0,0,.2);
    transition:border-radius .3s, padding .3s, max-width .4s ease
  }
  #authOverlay .mx-auth-steps{grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
  #authOverlay .mx-auth-steps img{aspect-ratio:16/6}
  #authOverlay .mx-auth-foot{margin-top:.7rem;padding-top:.5rem}
}
/* a lépés-leírás egérrel rámutatva olvasható (title a <li>-n); világos téma: */
body.light-theme #authOverlay #authBox{background:rgba(255,248,240,.82)}
body.light-theme #authOverlay .mx-auth-show{background:rgba(255,248,240,.72)}

/* belépőzene-kapcsoló (194-belepo-zene.js) */
.mx-belepo-zene{position:fixed;right:1rem;bottom:1rem;z-index:21;padding:.4rem .85rem;border-radius:999px;font-size:.85rem;cursor:pointer;
  background:rgba(33,28,22,.6);color:#e9d8b0;border:1px solid rgba(201,170,110,.45);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.mx-belepo-zene:hover{background:rgba(33,28,22,.8)}
.mx-belepo-zene[aria-pressed="true"]{border-color:#d9b25c;color:#f3d98b;box-shadow:0 0 10px rgba(217,178,92,.35)}
@media (max-width:768px){.mx-belepo-zene{position:absolute;top:.6rem;right:.6rem;bottom:auto}}

/* lenyíló „Hogyan működik?” (2026-11-27, user: „csak annyi legyen, rákattintva nyíljon ki szépen”) — minden kijelzőn */
#authOverlay #authShowTitle{cursor:pointer;user-select:none;display:flex;align-items:center;justify-content:center;gap:.5rem;margin:0;
  font-size:1.18rem;letter-spacing:.03em;color:#f3d98b;text-shadow:0 1px 3px rgba(0,0,0,.85)}
#authOverlay #authShowTitle:hover{color:#ffe7a3}
/* olvashatóbb lépés-szöveg (11-27, user: „legyen olvashatóbb”) */
#authOverlay .mx-auth-steps b{font-size:1rem;color:#f6e7c4;text-shadow:0 1px 2px rgba(0,0,0,.7)}
#authOverlay .mx-auth-steps span{font-size:.9rem;line-height:1.45;color:#e2d4b6}
#authOverlay .mx-auth-foot{font-size:.9rem;color:#e2d4b6}
body.light-theme #authOverlay #authShowTitle{color:#6b4a12;text-shadow:none}
body.light-theme #authOverlay .mx-auth-steps b{color:#2e2010;text-shadow:none}
body.light-theme #authOverlay .mx-auth-steps span,body.light-theme #authOverlay .mx-auth-foot{color:#4a3a26}

#authOverlay #authShowTitle::after{content:'▾';font-size:.85em;transition:transform .3s}
#authOverlay .mx-auth-show.nyitva #authShowTitle::after{transform:rotate(180deg)}
#authOverlay #authShowTitle:focus-visible{outline:2px solid #d9b25c;outline-offset:3px;border-radius:4px}
#authOverlay .mx-auth-show .mx-auth-steps,#authOverlay .mx-auth-show .mx-auth-foot{max-height:0;overflow:hidden;opacity:0;margin-top:0;padding-top:0;border-top-width:0;transition:max-height .45s ease,opacity .35s ease}
#authOverlay .mx-auth-show.nyitva .mx-auth-steps{max-height:40rem;opacity:1}
#authOverlay .mx-auth-show.nyitva .mx-auth-foot{max-height:6rem;opacity:1;margin-top:.7rem;padding-top:.5rem;border-top-width:1px}
#authOverlay .mx-auth-show.nyitva .mx-auth-steps li{animation:mxLepesBe .45s ease both}
#authOverlay .mx-auth-show.nyitva .mx-auth-steps li:nth-child(2){animation-delay:.07s}
#authOverlay .mx-auth-show.nyitva .mx-auth-steps li:nth-child(3){animation-delay:.14s}
#authOverlay .mx-auth-show.nyitva .mx-auth-steps li:nth-child(4){animation-delay:.21s}
@keyframes mxLepesBe{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (max-width:768px){
  #authOverlay .mx-auth-show{padding:.9rem var(--space-5) 1rem}
  #authOverlay .mx-auth-show.nyitva .mx-auth-steps{max-height:80rem}
}
@media (prefers-reduced-motion:reduce){#authOverlay .mx-auth-show *{transition:none!important;animation:none!important}}

/* 11-27 v3 (user: „ne ekkora távolság, és ne tűnjön el a Hogyan működik felirat”):
   a gomb a belépő alatt marad, a tartalom KÖZVETLENÜL alatta nyílik le lebegve (absolute) —
   nem tolja el a belépőt; ha nem fér ki, a lenyílón belül görget (max-height a JS-ből) */
#authOverlay .mx-auth-show{position:relative;z-index:25}
#authOverlay .mx-auth-lenyilo{display:none;position:absolute;top:calc(100% + .45rem);left:50%;transform:translateX(-50%);
  width:min(56rem,calc(100vw - 2rem));box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;
  padding:1rem 1.3rem 1rem;border-radius:12px;border:1px solid rgba(217,178,92,.45);text-align:left;
  background:rgba(24,20,15,.9);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 6px 22px rgba(0,0,0,.3)}
#authOverlay .mx-auth-show.nyitva .mx-auth-lenyilo{display:block;animation:mxLeNyil .3s cubic-bezier(.2,.8,.25,1) both}
/* ha alul nem fér ki: felfelé nyílik (a JS teszi rá a .felfele osztályt) */
#authOverlay .mx-auth-show.felfele .mx-auth-lenyilo{top:auto;bottom:calc(100% + .45rem);box-shadow:0 -6px 22px rgba(0,0,0,.3)}
@keyframes mxLeNyil{from{opacity:0;transform:translate(-50%,-8px)}to{opacity:1;transform:translate(-50%,0)}}
#authOverlay .mx-auth-lenyilo .mx-auth-steps{margin:0}
#authOverlay .mx-auth-lenyilo .mx-auth-steps,#authOverlay .mx-auth-lenyilo .mx-auth-foot{max-height:none!important;transition:none;opacity:1}
#authOverlay .mx-auth-show.nyitva .mx-auth-foot{margin-bottom:0}
body.light-theme #authOverlay .mx-auth-lenyilo{background:rgba(255,248,240,.95)}
/* telefonon a lenyíló a sorban nyílik (a lap lefelé görgethető), a belépő ott sem mozdul */
@media (max-width:768px){#authOverlay .mx-auth-lenyilo{position:static;transform:none;width:auto;max-height:none!important;margin-top:.7rem;padding:.9rem 1rem}
  #authOverlay .mx-auth-show.nyitva .mx-auth-lenyilo{animation-name:mxLeNyilT}}
@keyframes mxLeNyilT{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){#authOverlay .mx-auth-show.nyitva .mx-auth-lenyilo{animation:none}}
/* méréshez (JS): láthatatlanul kirajzolt lenyíló */
#authOverlay .mx-auth-show.meres .mx-auth-lenyilo{display:block;visibility:hidden;animation:none}

/* 11-27 v5 (user: „szép volt, aztán felrakta”) — alacsonyabb asztali ablakban (pl. 1139×751) a kinyitott
   súgó nem fért ki alul, ezért felfelé nyílt. Itt tömörebb belépő + súgó, hogy lefelé nyílhasson. */
@media (min-width:769px) and (max-height:900px){
  #authOverlay{padding-top:0;padding-bottom:0;gap:.5rem}
  #authOverlay > #authBox{margin-top:.75rem}
  #authOverlay #authBox{padding:.9rem 1.8rem;gap:.5rem}
  #authOverlay #authBox > img{width:3.2rem!important;height:3.2rem!important;margin-bottom:0!important}
  #authOverlay #authIntro{font-size:.88rem;line-height:1.4}
  #authOverlay .mx-auth-show{padding:.35rem 1.1rem}
  #authOverlay .mx-auth-lenyilo{padding:.75rem 1.1rem .8rem}
  #authOverlay .mx-auth-lenyilo .mx-auth-steps{gap:.8rem}
  #authOverlay .mx-auth-lenyilo .mx-auth-steps img{aspect-ratio:16/4.6}
  #authOverlay .mx-auth-lenyilo .mx-auth-steps b{font-size:.95rem}
  #authOverlay .mx-auth-lenyilo .mx-auth-steps span{font-size:.85rem;line-height:1.38}
  #authOverlay .mx-auth-show.nyitva .mx-auth-foot{margin-top:.5rem;padding-top:.4rem;font-size:.85rem}
}
/* nagyon alacsony asztali ablak (≤740px): a súgó képei elmaradnak, a számjelvény a cím elé kerül */
@media (min-width:769px) and (max-height:740px){
  #authOverlay .mx-auth-lenyilo .mx-auth-steps img{display:none}
  #authOverlay .mx-auth-lenyilo .mx-auth-steps li{padding-left:2rem}
  #authOverlay .mx-auth-lenyilo .mx-auth-steps li::before{left:0;top:0}
}
