/* Házbejáró — próbaszoba (2026-10-15) */
/* v2 (10-17): TELJES KÉPERNYŐ — a jelenet a képernyőbe illesztve középen, a kezelők a sarkokban lebegnek */
.mx-hb-ov { position: fixed; inset: 0; z-index: 9000; background: #0b0805; }
.mx-hb-ov.hidden { display: none; }
/* 2026-10-19: a trófea- és (új) jelenlévő-nagyítás (muvelet('nagyit')) a globális #imageLightbox-ot hívja, aminek
   alap z-index-e (30) a mx-hb-ov (9000) ALATT van — a kép a Házbejáró mögött nyílt meg, láthatatlanul. Ugyanaz a
   minta, mint a többi teljes képernyős overlay-nél (l. pl. 76-kisero-allat.css, 97-keretek.css). */
body:has(.mx-hb-ov:not(.hidden)) #imageLightbox { z-index: 9500; }
.mx-hb-box { position: absolute; inset: 0; overflow: hidden; color: #f6ead0; }
.mx-hb-body { position: absolute; inset: 0; }
.mx-hb-szin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(100vw, 100vh * 1.5); aspect-ratio: 3 / 2; overflow: hidden;
  background: #1b110a; user-select: none; transition: transform .65s ease-in, opacity .65s ease-in; }
.mx-hb-bg { position: absolute; inset: -2%; background: center / cover no-repeat; transform: scale(1.03); transition: transform .25s ease-out; }
.mx-hb-szin.van-kep .mx-hb-helyettes { display: none; }
.mx-hb-targyak, .mx-hb-elo { position: absolute; inset: 0; transition: transform .25s ease-out; pointer-events: none; }
.mx-hb-targyak > *, .mx-hb-elo > * { pointer-events: auto; }

/* rajzolt helyettes-szoba (amíg nincs kép) */
.mx-hb-helyettes { position: absolute; inset: 0; }
.mx-hb-helyettes i { position: absolute; display: block; }
.hb-fal { left: 0; right: 0; top: 0; height: 66%; background: linear-gradient(180deg, #8a6f50, #b39572 60%, #a8875f); }
.hb-gerenda { left: 0; right: 0; top: 0; height: 9%; background: repeating-linear-gradient(90deg, #3b2412 0 9%, #4e311a 9% 10%); box-shadow: 0 4px 10px rgba(0, 0, 0, .5); }
.hb-lamberia { left: 0; right: 0; top: 50%; height: 16%; background: repeating-linear-gradient(90deg, #4a2c15 0 6%, #3a2210 6% 6.4%); box-shadow: inset 0 3px 0 #6b4424; }
.hb-padlo { left: 0; right: 0; top: 66%; bottom: 0; background: repeating-linear-gradient(90deg, #5a3a1e 0 7%, #4b2f17 7% 7.3%), linear-gradient(180deg, #5d3c1f, #3a2410); background-blend-mode: multiply; }
.hb-kand { left: 1%; top: 28%; width: 21%; height: 48%; border-radius: 6px 6px 0 0;
  background: radial-gradient(ellipse at 50% 85%, #ffb347 0, #e0611a 18%, #3a1c0c 42%, #1a0d06 60%), repeating-linear-gradient(0deg, #6e6559 0 12%, #5b5348 12% 13%); }
.hb-ablak { left: 82%; top: 12%; width: 13%; height: 46%; border-radius: 50% 50% 0 0 / 22% 22% 0 0; border: 6px solid #3b2412;
  background: linear-gradient(180deg, #bcd8f0, #e8e2c8); box-shadow: inset 0 0 20px rgba(255, 255, 255, .6); }

/* fények */
.mx-hb-napszak { position: absolute; inset: 0; background: #0a1030; mix-blend-mode: multiply; pointer-events: none; z-index: 8; transition: opacity .6s; }
/* a kandalló nyílásába illesztett hurkolt tűzvideó: „screen” keveréssel a sötét rész eltűnik, lágy széllel */
.mx-hb-tuzvideo { position: absolute; object-fit: cover; mix-blend-mode: screen; opacity: .9; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at 50% 60%, #000 45%, transparent 78%); mask-image: radial-gradient(ellipse at 50% 60%, #000 45%, transparent 78%); }
.mx-hb-tuzfeny { position: absolute; width: 60%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; z-index: 9;
  background: radial-gradient(circle, rgba(255, 150, 60, .55), rgba(255, 110, 30, .18) 35%, transparent 65%); mix-blend-mode: screen;
  animation: mxHbLobog 2.6s ease-in-out infinite; }
.mx-hb-gyertya { position: absolute; width: 16%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; z-index: 9;
  background: radial-gradient(circle, rgba(255, 200, 120, .45), transparent 60%); mix-blend-mode: screen; animation: mxHbLobog 3.4s ease-in-out infinite reverse; }
@keyframes mxHbLobog { 0%, 100% { filter: brightness(1); transform: translate(-50%, -50%) scale(1); } 30% { filter: brightness(1.25); transform: translate(-50%, -50%) scale(1.04); }
  55% { filter: brightness(.85); transform: translate(-50%, -50%) scale(.97); } 80% { filter: brightness(1.15); transform: translate(-50%, -50%) scale(1.02); } }
@media (prefers-reduced-motion: reduce) { .mx-hb-tuzfeny, .mx-hb-gyertya { animation: none; } }

/* tárgyak, trófeák, forró pontok */
.mx-hb-targy { position: absolute; transform: translateX(-50%); padding: 0; border: 0; background: transparent; cursor: pointer; line-height: 0; }
.mx-hb-targy img { width: 100%; height: auto; display: block; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .5)); transition: filter .15s; }
.mx-hb-targy.t-padlon img { filter: none; }
.mx-hb-targy:hover img, .mx-hb-trofea:hover .mx-hb-tkep { filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .5)) drop-shadow(0 0 4px rgba(255, 226, 160, .8)) brightness(1.06); }   /* 10-18: halványabb kiemelés (a széles fénykoszorú „kivágottnak” tűnt) */
.mx-hb-targy.nincs-kep { line-height: 1.2; }
.mx-hb-tabla { display: inline-block; padding: 3px 7px; border-radius: 4px; font-size: .72rem; line-height: 1.2; color: #f6ead0; text-align: center;
  background: rgba(40, 24, 10, .88); border: 1px solid rgba(224, 184, 90, .7); box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.mx-hb-trofea { position: absolute; transform: translateX(-50%); aspect-ratio: 1 / 1.15; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center; }
.mx-hb-trofea.fa { border-radius: 50% 50% 12% 12%; background: radial-gradient(ellipse at 50% 35%, #8a5a30, #4f2e15 70%); border: 2px solid #2e1a0b;
  box-shadow: 0 6px 10px rgba(0, 0, 0, .55); }
.mx-hb-trofea.r2.fa { border-color: #8d5fb3; } .mx-hb-trofea.r3.fa { border-color: #e2b23d; box-shadow: 0 0 12px rgba(240, 195, 74, .6), 0 6px 10px rgba(0, 0, 0, .55); }
.mx-hb-lap { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.mx-hb-tkep { position: relative; max-width: 86%; max-height: 74%; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .6)); border-radius: 4px; }
.mx-hb-trofea .mx-hb-tabla { position: relative; font-size: .6rem; padding: 2px 4px; }
.mx-hb-pont { position: absolute; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 8px; z-index: 4; }
.mx-hb-pont:hover { box-shadow: inset 0 0 0 2px rgba(255, 226, 160, .55), 0 0 18px rgba(255, 226, 160, .25); }
/* a globális button:hover (piros háttér) ne üljön rá a jelenet tárgyaira — csak a fény-kiemelés látsszon */
.mx-hb-pont:hover:not(:disabled), .mx-hb-targy:hover:not(:disabled), .mx-hb-trofea:hover:not(:disabled) { background: transparent; border-color: transparent; }

/* felugró kártya */
.mx-hb-kartya { position: absolute; z-index: 20; width: 260px; padding: 10px 12px; border-radius: 8px; color: #3b2410; font-family: Georgia, serif;
  background: radial-gradient(ellipse at 50% 40%, rgba(255, 248, 228, .6), rgba(255, 248, 228, 0) 70%), url(/static/brand/arculat_konyv_lap_pergamen_v2.jpg) center / cover, #efdfb8;
  border: 1px solid #8a6533; box-shadow: inset 0 0 12px rgba(110, 70, 25, .45), 0 10px 24px rgba(0, 0, 0, .55); }
.mx-hb-kartya b { font-family: var(--font-display, serif); font-size: 1.05rem; color: #6b2a12; }
.mx-hb-kartya p { margin: 4px 0 8px; font-size: .85rem; line-height: 1.4; }
.mx-hb-kartya .btn-primary { margin: 2px 4px 2px 0; }
.mx-hb-lab { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 24; max-width: 60vw; font-size: .8rem; text-align: center;
  padding: 4px 12px; border-radius: 999px; background: rgba(20, 12, 6, .5); color: #f6ead0; pointer-events: none; display: none; }
.mx-bz-bejaro { margin: 0 0 10px; }
@media (max-width: 760px) { .mx-hb-box { width: 100vw; max-height: 100vh; } .mx-hb-kartya { width: 210px; } }

/* 2026-10-17: teljes ház — 16:9-es szobák, helyiségsáv, belépés kívülről */
.mx-hb-szin.mx-hb-169 { aspect-ratio: 16 / 9; width: min(100vw, 100vh * 16 / 9); }
/* belépés a bejárati ajtón: ránagyítás az ajtóra + elsötétülés */
.mx-hb-szin.belep { transform: translate(-50%, -50%) scale(3.2); opacity: 0; }
.mx-hb-fade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 40; transition: opacity .22s; }
.mx-hb-fade.be { opacity: 1; }
/* lebegő kezelők */
.mx-hb-cim { position: absolute; left: 14px; top: 10px; z-index: 30; margin: 0; padding: 5px 14px; border-radius: 999px; font-size: 1rem;
  background: rgba(20, 12, 6, .62); color: #f3d792; font-family: var(--font-display, serif); pointer-events: none; text-shadow: 0 1px 2px #000; }
.mx-hb-x { position: absolute; right: 14px; top: 10px; z-index: 30; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(243, 215, 146, .6);
  background: rgba(20, 12, 6, .7); color: #f3d792; font-size: 1.2rem; cursor: pointer; }
.mx-hb-x:hover:not(:disabled) { background: rgba(70, 40, 15, .9); color: #fff; border-color: #f3d792; }
.mx-hb-kijarat { position: absolute; left: 12px; bottom: 12px; z-index: 30; width: 74px; height: 104px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.mx-hb-kijarat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .7)); transition: opacity .2s; }
.mx-hb-kijarat img.nyitott { opacity: 0; } .mx-hb-kijarat:hover img.nyitott { opacity: 1; } .mx-hb-kijarat:hover img.zart { opacity: 0; }
.mx-hb-kijarat span { position: absolute; left: 0; right: 0; bottom: -2px; text-align: center; font-size: .72rem; color: #f3d792; text-shadow: 0 1px 3px #000; }
.mx-hb-kijarat.szoveg { width: auto; height: auto; padding: 8px 14px; border-radius: 8px; border: 1px solid rgba(243, 215, 146, .6); background: rgba(20, 12, 6, .72); }
.mx-hb-kijarat.szoveg span { position: static; font-size: .9rem; }
.mx-hb-kijarat:hover:not(:disabled) { background: transparent; } .mx-hb-kijarat.szoveg:hover:not(:disabled) { background: rgba(70, 40, 15, .9); }
.mx-hb-tipp { position: absolute; right: 14px; bottom: 14px; z-index: 30; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(243, 215, 146, .6);
  background: rgba(20, 12, 6, .7); color: #f3d792; font-size: .85rem; cursor: pointer; }
.mx-hb-tipp:hover:not(:disabled) { background: rgba(70, 40, 15, .9); color: #fff; border-color: #f3d792; }
/* szélső nyilak */
.mx-hb-nyil { position: absolute; top: 50%; transform: translateY(-50%); z-index: 25; width: 78px; height: 120px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.mx-hb-nyil.bal { left: 8px; } .mx-hb-nyil.jobb { right: 8px; }
.mx-hb-nyil img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .7)); transition: transform .15s; }
.mx-hb-nyil.bal img { transform: scaleX(-1); } .mx-hb-nyil:hover.bal img { transform: scaleX(-1) translateX(4px); } .mx-hb-nyil:hover.jobb img { transform: translateX(4px); }
.mx-hb-nyil i { display: none; }
.mx-hb-nyil.szoveg i { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; margin: 0 auto; border-radius: 50%; font-style: normal;
  font-size: 2.6rem; line-height: 1; color: #f3d792; background: radial-gradient(circle at 40% 35%, #6b4423, #2b170a 75%); border: 2px solid #c89a4a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .7), inset 0 0 8px rgba(255, 210, 140, .25); transition: transform .15s; }
.mx-hb-nyil.szoveg:hover i { transform: scale(1.08); }
.mx-hb-nyil span { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); white-space: nowrap; font-size: .78rem; color: #f3d792; text-shadow: 0 1px 3px #000;
  opacity: 0; transition: opacity .15s; pointer-events: none; }
.mx-hb-nyil:hover span { opacity: 1; }
.mx-hb-nyil:hover:not(:disabled) { background: transparent; }
/* „Mi kattintható?” */
.mx-hb-szin.mutat .mx-hb-pont, .mx-hb-szin.mutat .mx-hb-targy img, .mx-hb-szin.mutat .mx-hb-trofea { animation: mxHbVillan 1.8s ease-out; }
.mx-hb-szin.mutat .mx-hb-pont { box-shadow: inset 0 0 0 2px rgba(255, 226, 160, .8), 0 0 22px rgba(255, 226, 160, .5); }
@keyframes mxHbVillan { 0%, 100% { filter: none; } 30%, 60% { filter: drop-shadow(0 0 10px #ffe2a0) drop-shadow(0 0 4px #ffe2a0) brightness(1.15); } }
.mx-hb-bejarat { animation: mxHbAjto 2.4s ease-in-out infinite; }
@keyframes mxHbAjto { 0%, 100% { box-shadow: inset 0 0 0 1px rgba(255, 226, 160, .15), 0 0 0 rgba(255, 226, 160, 0); } 50% { box-shadow: inset 0 0 0 2px rgba(255, 226, 160, .55), 0 0 26px rgba(255, 226, 160, .35); } }
/* tűz a kandalló / tűzhely bútorban */
.mx-hb-butortuz { position: absolute; object-fit: cover; mix-blend-mode: screen; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at 50% 60%, #000 40%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 60%, #000 40%, transparent 75%); }
/* közeli nézet: a láda helyben nyílik */
.mx-hb-kozel { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; background: rgba(8, 5, 2, .62);
  animation: mxHbKozel .25s ease-out; }
@keyframes mxHbKozel { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.mx-hb-kozel-pan { display: flex; gap: 18px; align-items: center; width: min(820px, 92%); max-height: 86%; }
.mx-hb-kozel-kep { flex: 0 0 38%; } .mx-hb-kozel-kep img { width: 100%; filter: drop-shadow(0 0 18px rgba(255, 200, 110, .45)) drop-shadow(0 10px 14px rgba(0, 0, 0, .7)); }
.mx-hb-kozel-lista { flex: 1 1 auto; max-height: 100%; overflow: auto; padding: 14px 16px; border-radius: 10px; color: #3b2410; font-family: Georgia, serif;
  background: url(/static/brand/arculat_konyv_lap_pergamen_v2.jpg) center / cover, #efdfb8; border: 1px solid #8a6533; box-shadow: inset 0 0 12px rgba(110, 70, 25, .45), 0 10px 24px rgba(0, 0, 0, .55); }
.mx-hb-kozel-cim { display: block; font-family: var(--font-display, serif); font-size: 1.15rem; color: #6b2a12; }
.mx-hb-kozel-kis { font-size: .8rem; opacity: .75; margin: 2px 0 8px; }
.mx-hb-kozel-sor { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px dashed rgba(110, 70, 25, .35); font-size: .9rem; }
.mx-hb-kozel-ures { font-style: italic; opacity: .8; }
.mx-hb-kozel-sel { width: 100%; margin: 10px 0 8px; }
.mx-hb-kozel-vissza { margin-top: 4px; }
.mx-hb-sav { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 26; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  max-width: calc(100vw - 260px); padding: 6px 8px; border-radius: 14px; background: rgba(20, 12, 6, .55); }
.mx-hb-terg { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--accent-dim, #a8894f); background: var(--panel-raised, #f4ead5);
  color: var(--text, #2b2116); cursor: pointer; font-size: .85rem; }
.mx-hb-terg small { opacity: .65; }
.mx-hb-terg.akt { background: var(--accent, #7a4f1d); border-color: var(--accent, #7a4f1d); color: #fff8e6; }
.mx-hb-terg:hover:not(.akt):not(:disabled) { background: var(--panel, #efe2c6); border-color: var(--accent, #7a4f1d); color: var(--text, #2b2116); }
.mx-hb-belep { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); z-index: 12; min-width: 260px; max-width: 80%; text-align: center;
  padding: 12px 18px 14px; border-radius: 10px; color: #3b2410; font-family: Georgia, serif;
  background: url(/static/brand/arculat_konyv_lap_pergamen_v2.jpg) center / cover, #efdfb8; border: 1px solid #8a6533;
  box-shadow: inset 0 0 12px rgba(110, 70, 25, .45), 0 10px 24px rgba(0, 0, 0, .55); }
.mx-hb-belep b { font-family: var(--font-display, serif); font-size: 1.2rem; color: #6b2a12; }
.mx-hb-belep p { margin: 4px 0 10px; font-size: .88rem; }
.mx-hb-ures { position: absolute; left: 50%; top: 72%; transform: translateX(-50%); z-index: 10; padding: 6px 14px; border-radius: 8px;
  background: rgba(30, 18, 8, .72); color: #f6ead0; font-size: .85rem; pointer-events: none; }
.mx-hb-tuzfeny.kicsi { width: 34%; }
@media (max-width: 760px) {
  .mx-hb-terg { padding: 4px 9px; font-size: .74rem; }
  .mx-hb-sav { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; max-width: calc(100vw - 20px); bottom: 8px; }
  .mx-hb-belep { min-width: 0; bottom: 4%; padding: 8px 12px; }
  .mx-hb-nyil { width: 52px; height: 80px; } .mx-hb-nyil.szoveg i { width: 42px; height: 42px; font-size: 1.9rem; }
  .mx-hb-kijarat { bottom: 62px; width: 52px; height: 74px; } .mx-hb-tipp { bottom: 62px; font-size: .75rem; padding: 5px 10px; }
  .mx-hb-kozel-pan { flex-direction: column; } .mx-hb-kozel-kep { flex-basis: auto; width: 34%; }
}

/* az ablakon át a valódi kinti napszak (172: ablakFeny; maszk = az üveg / a kertben az ég) */
.mx-hb-ablakfeny { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.mx-hb-ablakfeny.nf-ejszaka { opacity: .94;
  background: radial-gradient(circle at 78% 16%, rgba(245, 245, 255, .95) 0 .9%, rgba(190, 205, 255, .35) 2%, transparent 3.4%),
    radial-gradient(1.3px 1.3px at 9px 11px, #fff 60%, transparent), radial-gradient(1px 1px at 33px 37px, #dfe6ff 60%, transparent),
    radial-gradient(1.5px 1.5px at 57px 19px, #fff 60%, transparent), radial-gradient(1px 1px at 71px 49px, #cfd8ff 60%, transparent),
    linear-gradient(180deg, #040820, #13204a 70%, #1d2c5c);
  background-size: auto, 80px 60px, 80px 60px, 80px 60px, 80px 60px, auto; }
.mx-hb-ablakfeny.nf-este { opacity: .9;   /* este: sötétedő ég, alul még egy csík alkonypír */
  background: radial-gradient(1px 1px at 21px 13px, #e8ecff 60%, transparent), radial-gradient(1.2px 1.2px at 63px 29px, #fff 60%, transparent),
    linear-gradient(180deg, #0c1230 0%, #1d2350 55%, #4a2f55 82%, #a0583f 100%); background-size: 90px 60px, 90px 60px, auto; }
.mx-hb-ablakfeny.nf-hajnal { opacity: .6; mix-blend-mode: multiply; background: linear-gradient(180deg, #f9c4d2, #d6c4f4); }
.mx-hb-ablakfeny.nf-nappal { opacity: 0; }

/* 10-17 délután: a gombok minden állapotban átlátszók (Firefoxban a fókuszált gomb piros hátteret kapott a bútor mögött) */
#hazbejaroOverlay .mx-hb-targy, #hazbejaroOverlay .mx-hb-targy:hover, #hazbejaroOverlay .mx-hb-targy:focus, #hazbejaroOverlay .mx-hb-targy:active,
#hazbejaroOverlay .mx-hb-targy:focus-visible, #hazbejaroOverlay .mx-hb-pont, #hazbejaroOverlay .mx-hb-pont:focus, #hazbejaroOverlay .mx-hb-pont:active,
#hazbejaroOverlay .mx-hb-trofea, #hazbejaroOverlay .mx-hb-trofea:focus, #hazbejaroOverlay .mx-hb-trofea:active {
  background: transparent !important; background-color: transparent !important; border-color: transparent !important; outline: none; box-shadow: none; }
#hazbejaroOverlay .mx-hb-targy:focus-visible img { filter: drop-shadow(0 0 8px #ffe2a0) drop-shadow(0 0 3px #ffe2a0); }
/* a padlón fekvő bútor (szőnyeg, medvebőr) perspektívában fekszik */
.mx-hb-targy.t-padlon img { transform: perspective(900px) rotateX(58deg); transform-origin: 50% 100%; }
/* ALAPRAJZ (felülnézet) */
.mx-hb-alaprajz { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -52%); width: min(1100px, 94vw); max-height: calc(100vh - 150px); overflow: auto;
  padding: 18px 22px 20px; border-radius: 12px; color: #3b2410; font-family: Georgia, serif;
  background: radial-gradient(ellipse at 50% 40%, rgba(255, 248, 228, .55), rgba(255, 248, 228, 0) 70%), url(/static/brand/arculat_konyv_lap_pergamen_v2.jpg) center / cover, #efdfb8;
  border: 1px solid #8a6533; box-shadow: inset 0 0 22px rgba(110, 70, 25, .5), 0 18px 40px rgba(0, 0, 0, .6); }
.mx-hb-ap-cim { margin: 0; text-align: center; font-family: var(--font-display, serif); font-size: 1.45rem; color: #6b2a12; }
.mx-hb-ap-kis { text-align: center; font-size: .85rem; opacity: .75; margin: 2px 0 12px; }
.mx-hb-ap-racs { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(110px, 15vh); gap: 10px; padding: 12px;
  border: 3px double #6b4a24; border-radius: 6px; background: rgba(120, 85, 40, .12); }
.mx-hb-ap-terem { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 2px; padding: 8px 10px;
  border: 2px solid #6b4a24; border-radius: 4px; cursor: pointer; text-align: left; color: #fff6e0; background: #3a2412 center / cover no-repeat;
  box-shadow: inset 0 -60px 50px -20px rgba(15, 8, 3, .85), 0 3px 8px rgba(0, 0, 0, .35); transition: transform .15s, box-shadow .15s; }
.mx-hb-ap-terem b { font-family: var(--font-display, serif); font-size: 1.05rem; text-shadow: 0 1px 3px #000; }
.mx-hb-ap-terem span { font-size: .75rem; opacity: .85; text-shadow: 0 1px 2px #000; }
.mx-hb-ap-terem:hover:not(:disabled), .mx-hb-ap-terem:focus-visible { transform: translateY(-2px); border-color: #c79a45; color: #fff;
  box-shadow: inset 0 -60px 50px -20px rgba(15, 8, 3, .75), 0 0 0 2px rgba(243, 215, 146, .6), 0 8px 18px rgba(0, 0, 0, .45); }
.mx-hb-terg-ap { font-weight: bold; }
/* pihenés helyben */
.mx-hb-pihen-kep { position: relative; }
.mx-hb-pihen-gombok { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.mx-hb-kozel-elad { margin: 8px 8px 0 0; }
@media (max-width: 760px) {
  .mx-hb-ap-racs { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 92px; }
  .mx-hb-ap-terem { grid-row: auto !important; grid-column: auto !important; }
  .mx-hb-alaprajz { max-height: calc(100vh - 130px); padding: 12px; }
}

#hazbejaroOverlay .mx-hb-targy:active, #hazbejaroOverlay .mx-hb-targy:focus, #hazbejaroOverlay .mx-hb-trofea:active, #hazbejaroOverlay .mx-hb-trofea:focus { transform: translateX(-50%) !important; }

/* 165: a festett nyíl fekvő formátumú */
.mx-hb-nyil:not(.szoveg) { width: 118px; height: 76px; }
@media (max-width: 760px) { .mx-hb-nyil:not(.szoveg) { width: 74px; height: 48px; } }

/* 167: festett tervrajz szintekkel */
.mx-hb-terv { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -52%); width: min(1180px, 96vw, (100vh - 190px) * 1.5 + 40px); padding: 12px 16px 14px;
  border-radius: 12px; color: #3b2410; font-family: Georgia, serif; background: url(/static/brand/arculat_konyv_lap_pergamen_v2.jpg) center / cover, #efdfb8;
  border: 1px solid #8a6533; box-shadow: inset 0 0 22px rgba(110, 70, 25, .5), 0 18px 40px rgba(0, 0, 0, .6); }
.mx-hb-terv-fej { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.mx-hb-terv-fej b { font-family: var(--font-display, serif); font-size: 1.3rem; color: #6b2a12; }
.mx-hb-terv-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.mx-hb-terv-kep { position: relative; width: 100%; aspect-ratio: 3 / 2; background: center / 100% 100% no-repeat; border: 3px double #6b4a24; border-radius: 4px;
  filter: none; overflow: hidden; }
.mx-hb-terv-kep::before { content: ''; position: absolute; inset: 0; background: inherit; filter: sepia(.85) saturate(.55) brightness(1.08) contrast(.92); pointer-events: none; }
.mx-hb-terv-szoba { position: absolute; padding: 0; border: 2px solid transparent; border-radius: 3px; background: transparent; cursor: pointer; overflow: hidden; }
.mx-hb-terv-szoba i { position: absolute; inset: 0; opacity: 0; transition: opacity .25s; background-repeat: no-repeat; }
.mx-hb-terv-szoba:hover:not(:disabled), .mx-hb-terv-szoba:focus-visible { background: transparent !important; border-color: rgba(243, 215, 146, .95);
  box-shadow: 0 0 0 1px #6b4a24, 0 0 22px rgba(255, 220, 140, .55); }
.mx-hb-terv-szoba:hover i, .mx-hb-terv-szoba:focus-visible i { opacity: 1; }
.mx-hb-terv-szoba:active { transform: none !important; }
.mx-hb-terv-szoba.zarva { cursor: not-allowed; }
.mx-hb-terv-szoba.zarva:hover { border-color: rgba(120, 90, 60, .6); box-shadow: none; }
.mx-hb-terv-szoba.zarva:hover i { opacity: .35; filter: grayscale(1); }
.mx-hb-terv-cimke { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 5; padding: 5px 14px; border-radius: 999px; pointer-events: none;
  background: rgba(30, 18, 8, .82); color: #f6ead0; font-size: .9rem; opacity: 0; transition: opacity .15s; white-space: nowrap; }
.mx-hb-terv-cimke.lat { opacity: 1; }

/* 2026-10-18: családtag/bérlő kis portré-jelvénye a szoba alján (jelenlevok[]) */
.mx-hb-szemely { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; padding: 0; border-radius: 50%;
  border: 2px solid #c9b48a; background: #2a1c10; cursor: pointer; z-index: 4; overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .5); transition: transform .15s, box-shadow .15s; }
.mx-hb-szemely:hover, .mx-hb-szemely:focus-visible { transform: translate(-50%, -50%) scale(1.22);
  box-shadow: 0 0 0 2px #f3d792, 0 2px 8px rgba(0, 0, 0, .6); z-index: 5; }
.mx-hb-szemely img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mx-hb-szemely span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  font-family: var(--font-display, serif); font-size: .85rem; color: #f6ead0; }
.mx-hb-szemely-csalad { border-color: #f3d792; }
.mx-hb-szemely-berlo { border-color: #9fb3c9; }

.mx-hb-padlas { max-width: 520px; }

/* 10-17 este: ház + alaprajz főoldal két oszlopban; kattintható szobák szürkék, rámutatva színesek; napszak-keret; vissza-gomb */
.mx-hb-terv { width: min(1500px, 97vw); }
.mx-hb-terv-ket { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.mx-hb-terv-haz { position: relative; aspect-ratio: 3 / 2; background: center / cover no-repeat; border: 3px double #6b4a24; border-radius: 4px; overflow: hidden; }
.mx-hb-terv-szintkeret { position: absolute; border: 2px solid rgba(255, 236, 170, .95); border-radius: 4px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(20, 12, 5, .38), 0 0 16px rgba(255, 220, 140, .55), inset 0 0 14px rgba(255, 220, 140, .35); transition: all .3s; }
.mx-hb-terv-szintkeret span { position: absolute; left: 6px; top: -1px; transform: translateY(-100%); padding: 1px 8px; border-radius: 6px 6px 0 0;
  background: rgba(40, 24, 10, .85); color: #f3d792; font-size: .78rem; white-space: nowrap; }
.mx-hb-terv-kep::before { content: none !important; }
.mx-hb-terv-kep { isolation: isolate; }
/* szürkítés keverési móddal (minden böngészőben megy): szürke réteg 'saturation' módban + enyhe sötétítés */
.mx-hb-terv-szoba { border-color: rgba(120, 95, 60, .55); }
.mx-hb-terv-szoba::before, .mx-hb-terv-szoba::after { content: ''; position: absolute; inset: 0; pointer-events: none; transition: opacity .25s; }
.mx-hb-terv-szoba::before { background: #808080; mix-blend-mode: saturation; }
.mx-hb-terv-szoba::after { background: rgba(40, 30, 20, .12); }
.mx-hb-terv-szoba:not(.zarva):hover::before, .mx-hb-terv-szoba:not(.zarva):hover::after,
.mx-hb-terv-szoba:not(.zarva):focus-visible::before, .mx-hb-terv-szoba:not(.zarva):focus-visible::after { opacity: 0; }
.mx-hb-terv-szoba.zarva::after { background: rgba(20, 14, 8, .5); }
.mx-hb-terv-szoba.udvar { border-style: dashed; }
.mx-hb-vissza { position: absolute; left: 14px; top: 54px; z-index: 30; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(243, 215, 146, .7);
  background: rgba(20, 12, 6, .72); color: #f3d792; font-size: .95rem; cursor: pointer; }
.mx-hb-vissza:hover:not(:disabled) { background: rgba(70, 40, 15, .9); color: #fff; border-color: #f3d792; }
/* napszak-keret a jelenet szélén (az ablak-maszk helyett) */
.mx-hb-szin::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 9; transition: box-shadow .6s; }
.mx-hb-szin.nf-ejszaka::after { box-shadow: inset 0 0 160px 60px rgba(4, 8, 30, .88); }
.mx-hb-szin.nf-este::after { box-shadow: inset 0 0 150px 50px rgba(60, 22, 40, .72); }
.mx-hb-szin.nf-hajnal::after { box-shadow: inset 0 0 130px 40px rgba(110, 70, 95, .45); }
.mx-hb-szin.nf-nappal::after { box-shadow: inset 0 0 90px 20px rgba(30, 18, 8, .22); }
.mx-hb-ablakfeny { display: none; }
@media (max-width: 900px) { .mx-hb-terv-ket { grid-template-columns: 1fr; } .mx-hb-terv-haz { display: none; } }

/* ── v11: tervrajz-főoldal — nagy terv jobbra, keskeny ház-oszlop balra; kényelmes, nyugodt elrendezés ── */
.mx-hb-t2 { position: absolute; inset: 52px 18px 18px; display: grid; grid-template-columns: minmax(260px, 24%) 1fr; gap: 16px; }
.mx-hb-t2-bal { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow: auto; padding: 12px; border-radius: 12px; color: #3b2410; font-family: Georgia, serif;
  background: url(/static/brand/arculat_konyv_lap_pergamen_v2.jpg) center / cover, #efdfb8; border: 1px solid #8a6533;
  box-shadow: inset 0 0 22px rgba(110, 70, 25, .45), 0 14px 32px rgba(0, 0, 0, .55); }
.mx-hb-t2-cim b { display: block; font-family: var(--font-display, serif); font-size: 1.3rem; color: #6b2a12; line-height: 1.15; }
.mx-hb-t2-cim span { font-size: .8rem; opacity: .75; }
.mx-hb-t2-haz { position: relative; aspect-ratio: 3 / 2; background: center / cover no-repeat; border: 3px double #6b4a24; border-radius: 6px; overflow: hidden; flex: none; }
.mx-hb-t2-sav { position: absolute; padding: 0; border: 1.5px solid transparent; border-radius: 4px; background: transparent; cursor: pointer; transition: all .2s; }
.mx-hb-t2-sav span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 1px 8px; border-radius: 6px; font-size: .72rem; white-space: nowrap;
  background: rgba(30, 18, 8, .78); color: #f6ead0; opacity: 0; transition: opacity .2s; pointer-events: none; }
.mx-hb-t2-sav:hover:not(:disabled) { background: rgba(255, 230, 160, .14); border-color: rgba(255, 236, 170, .8); }
.mx-hb-t2-sav:hover span { opacity: 1; }
.mx-hb-t2-sav.akt { border-color: rgba(255, 236, 170, .95); box-shadow: 0 0 0 9999px rgba(20, 12, 5, .35), 0 0 14px rgba(255, 220, 140, .6), inset 0 0 12px rgba(255, 220, 140, .35); }
.mx-hb-t2-sav.akt span { opacity: 1; }
.mx-hb-t2-szintek { display: flex; flex-direction: column; gap: 6px; }
.mx-hb-t2-tabla { display: flex; align-items: baseline; justify-content: space-between !important; gap: 8px; width: 100%; padding: 7px 12px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(138, 101, 51, .55); background: rgba(255, 250, 235, .55); color: #3b2410; font-family: Georgia, serif; text-align: left; }
.mx-hb-t2-tabla b { font-family: var(--font-display, serif); font-size: .98rem; font-weight: normal; }
.mx-hb-t2-tabla small { opacity: .65; font-size: .75rem; }
.mx-hb-t2-tabla:hover:not(:disabled) { background: rgba(255, 245, 215, .9); border-color: #8a6533; color: #3b2410; }
.mx-hb-t2-tabla.akt { background: linear-gradient(180deg, #8a5a24, #6b3f14); border-color: #4a2a0c; color: #fff4dc; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.mx-hb-t2-info { margin-top: auto; padding: 10px 12px; border-radius: 8px; background: rgba(255, 250, 235, .6); border: 1px dashed rgba(138, 101, 51, .6); min-height: 120px; }
.mx-hb-t2-info b { font-family: var(--font-display, serif); font-size: 1.05rem; color: #6b2a12; }
.mx-hb-t2-info p { margin: 4px 0 6px; font-size: .86rem; line-height: 1.4; }
.mx-hb-t2-info small { font-size: .75rem; opacity: .7; font-style: italic; }
.mx-hb-t2-butorok { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.mx-hb-t2-butorok img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); }
.mx-hb-t2-jobb { position: relative; min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; }
.mx-hb-t2-terv { width: min(100%, (100vh - 70px) * 1.5); border: 4px double #6b4a24; border-radius: 6px; box-shadow: 0 18px 40px rgba(0, 0, 0, .6), 0 0 0 1px #c9a35a; }
#hazbejaroOverlay:has(.mx-hb-t2) .mx-hb-tipp { display: none; }
/* stílusos vissza-gomb: festett nyíl + pergamen címke */
.mx-hb-vissza { display: inline-flex !important; align-items: center; gap: 4px; left: 12px !important; top: 48px !important; padding: 4px 16px 4px 6px !important;
  border-radius: 10px 999px 999px 10px !important; border: 1px solid #8a6533 !important; color: #3b2410 !important; font-family: Georgia, serif;
  background: url(/static/brand/arculat_konyv_lap_pergamen_v2.jpg) center / cover, #efdfb8 !important;
  box-shadow: inset 0 0 10px rgba(110, 70, 25, .45), 0 6px 14px rgba(0, 0, 0, .55) !important; transition: transform .15s; }
.mx-hb-vissza-nyil { width: 58px; height: 36px; object-fit: contain; transform: scaleX(-1); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .4)); transition: transform .15s; }
.mx-hb-vissza-tx { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.mx-hb-vissza-tx b { font-family: var(--font-display, serif); font-size: 1.05rem; color: #6b2a12; font-weight: normal; }
.mx-hb-vissza-tx small { font-size: .7rem; opacity: .7; }
.mx-hb-vissza:hover:not(:disabled) { transform: translateX(-2px); border-color: #c9a35a !important; }
.mx-hb-vissza:hover .mx-hb-vissza-nyil { transform: scaleX(-1) translateX(4px); }
@media (max-width: 900px) {
  .mx-hb-t2 { grid-template-columns: 1fr; grid-template-rows: auto 1fr; inset: 48px 8px 70px; }
  .mx-hb-t2-bal { flex-direction: row; flex-wrap: wrap; padding: 8px; } .mx-hb-t2-haz, .mx-hb-t2-info { display: none; }
  .mx-hb-t2-szintek { flex-direction: row; flex-wrap: wrap; } .mx-hb-t2-tabla { width: auto; }
}

#hazbejaroOverlay:has(.mx-hb-t2) .mx-hb-kijarat { left: auto; right: 14px; }

/* ── „Diablo-ajtó”: rámutatva kinyílik, fény árad ki ── */
.mx-hb-ajtoreteg { position: absolute; inset: -2%; transform: scale(1.03); transition: transform .25s ease-out; z-index: 10; pointer-events: none; }
.mx-hb-ajto { position: absolute; padding: 0; border: 0 !important; background: transparent !important; cursor: pointer; pointer-events: auto; perspective: 600px;
  border-radius: 50% 50% 0 0 / var(--iv) var(--iv) 0 0; overflow: visible; }
.mx-hb-ajto:active { transform: none !important; }
.mx-hb-ajto-belso { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; opacity: .0; transition: opacity .5s;
  background: radial-gradient(ellipse at 50% 80%, rgba(255, 236, 190, .35) 0%, rgba(255, 190, 100, .18) 35%, rgba(30, 14, 4, .0) 60%, rgba(20, 10, 3, .6) 100%),
    url(/static/berendezes/ajto_belso.jpg) 50% 70% / cover no-repeat; box-shadow: inset 0 0 14px rgba(0, 0, 0, .65); filter: saturate(1.15) brightness(1.15); }
.mx-hb-ajto-belso::after { content: ''; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 50% 100%, rgba(255, 240, 200, .14) 0 3deg, transparent 3deg 12deg);
  mix-blend-mode: screen; animation: mxHbSugar 6s linear infinite; }
@keyframes mxHbSugar { from { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } to { transform: rotate(-3deg); } }
.mx-hb-ajto-szarny { position: absolute; top: 0; bottom: 0; width: 50%; background-repeat: no-repeat; transition: transform .9s cubic-bezier(.3, .7, .2, 1), filter .9s;
  backface-visibility: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.mx-hb-ajto-szarny.bal { left: 0; transform-origin: 0 50%; border-radius: 100% 0 0 0 / var(--iv) 0 0 0; }
.mx-hb-ajto-szarny.jobb { right: 0; transform-origin: 100% 50%; border-radius: 0 100% 0 0 / 0 var(--iv) 0 0; }
.mx-hb-ajtoreteg.nyitva .mx-hb-ajto-belso { opacity: 1; }
.mx-hb-ajtoreteg.nyitva .mx-hb-ajto-szarny.bal { transform: rotateY(-72deg); filter: brightness(.55); }
.mx-hb-ajtoreteg.nyitva .mx-hb-ajto-szarny.jobb { transform: rotateY(72deg); filter: brightness(.55); }
.mx-hb-ajto-csova { position: absolute; aspect-ratio: 2.2 / 1; transform: translate(-50%, -38%); pointer-events: none; opacity: 0; transition: opacity .7s .15s;
  background: radial-gradient(ellipse at 50% 30%, rgba(255, 214, 140, .75), rgba(255, 170, 70, .3) 38%, transparent 70%); mix-blend-mode: screen; filter: blur(2px); }
.mx-hb-ajtoreteg.nyitva .mx-hb-ajto-csova { opacity: 1; }
.mx-hb-ajtoreteg::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .7s; }
@media (prefers-reduced-motion: reduce) { .mx-hb-ajto-szarny { transition: none; } .mx-hb-ajto-belso::after { animation: none; } }

/* a kinti nézetben a névkártya balra kerül, hogy ne takarja a bejáratot */
.mx-hb-kint .mx-hb-belep { left: 3%; bottom: 5%; transform: none; text-align: left; max-width: 36%; }
.mx-hb-ajto-csova { aspect-ratio: 1.6 / 1; }

.mx-hb-rejtett-szoveg { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* v13 (10-17 éjjel): kompakt névtábla kint; puhább áttűnés; feliratsáv rámutatáskor; gyertyafény az alaprajzon */
.mx-hb-kint .mx-hb-belep { left: 14px; top: 50px; bottom: auto; min-width: 0; max-width: 260px; padding: 7px 12px 9px; border-radius: 8px;
  background: url(/static/brand/arculat_konyv_lap_pergamen_v2.jpg) center / cover, #efdfb8; opacity: .93; }
.mx-hb-kint .mx-hb-belep b { font-size: 1rem; }
.mx-hb-kint .mx-hb-belep p { margin: 1px 0 6px; font-size: .78rem; opacity: .8; }
.mx-hb-kint .mx-hb-belep .btn-primary { padding: 3px 12px; font-size: .8rem; }
.mx-hb-fade { transition: opacity .38s ease; background: radial-gradient(ellipse at center, #1a0f06 0%, #000 75%); }
.mx-hb-felirat { position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 6px); z-index: 28; max-width: min(720px, 70vw); padding: 6px 16px; border-radius: 999px;
  background: rgba(24, 14, 6, .8); color: #f6ead0; font-size: .88rem; text-align: center; pointer-events: none; opacity: 0; transition: opacity .2s, transform .2s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .5); border: 1px solid rgba(243, 215, 146, .35); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-hb-felirat b { font-family: var(--font-display, serif); font-weight: normal; color: #f3d792; }
.mx-hb-felirat.lat { opacity: 1; transform: translate(-50%, 0); }
#hazbejaroOverlay:has(.mx-hb-t2) .mx-hb-felirat { display: none; }
/* gyertyafény a tervrajz fölött */
.mx-hb-t2-jobb::after { content: ''; position: absolute; inset: -20px; pointer-events: none; z-index: 3;
  background: radial-gradient(ellipse at 18% 12%, rgba(255, 190, 90, .16), transparent 45%), radial-gradient(ellipse at 85% 90%, rgba(255, 170, 70, .12), transparent 45%);
  mix-blend-mode: screen; animation: mxHbGyertya 4.5s ease-in-out infinite; }
@keyframes mxHbGyertya { 0%, 100% { opacity: .85; } 25% { opacity: 1; } 45% { opacity: .7; } 70% { opacity: .95; } }
@media (prefers-reduced-motion: reduce) { .mx-hb-t2-jobb::after { animation: none; } }

.mx-hb-ablak-sotet, .mx-hb-ablak-fenyek { position: absolute; inset: 0; pointer-events: none; -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.mx-hb-ablak-sotet { mix-blend-mode: multiply; }
.mx-hb-ablak-sotet.nf-ejszaka { background: linear-gradient(180deg, #0a1230, #1a2448 70%, #2a2a40); opacity: .9; }
.mx-hb-ablak-sotet.nf-este { background: linear-gradient(180deg, #1c2048, #4a3060 60%, #8a5040); opacity: .82; }
.mx-hb-ablak-sotet.nf-hajnal { background: linear-gradient(180deg, #6a6a9a, #b08aa0); opacity: .55; }
.mx-hb-ablak-fenyek { mix-blend-mode: screen; animation: mxHbVarosFeny 5s ease-in-out infinite;
  background: radial-gradient(1.6px 1.6px at 12px 58px, #ffd27a 60%, transparent), radial-gradient(1.4px 1.4px at 41px 66px, #ffc260 60%, transparent),
    radial-gradient(1.8px 1.8px at 67px 52px, #ffe0a0 60%, transparent), radial-gradient(1.3px 1.3px at 23px 74px, #ffb050 60%, transparent),
    radial-gradient(1.5px 1.5px at 55px 71px, #ffd27a 60%, transparent), radial-gradient(ellipse at 50% 100%, rgba(255, 170, 80, .22), transparent 60%);
  background-size: 80px 90px, 80px 90px, 80px 90px, 80px 90px, 80px 90px, 100% 100%; }
.mx-hb-ablak-fenyek.nf-hajnal { opacity: .25; }
@keyframes mxHbVarosFeny { 0%, 100% { opacity: .85; } 40% { opacity: 1; } 65% { opacity: .65; } }
@media (prefers-reduced-motion: reduce) { .mx-hb-ablak-fenyek { animation: none; } }

/* ── 10-18 Átrendezés (szabad elhelyezés) + díszek ── */
.mx-hb-disz img { filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .45)); }
.mx-hb-disz.d-fal img { filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .55)); }
.mx-hb-disz.nincs-kep .mx-hb-tabla { font-size: .62rem; }
#hazbejaroOverlay .mx-hb-rendez { position: absolute; right: 14px; bottom: 58px; z-index: 30; display: flex; align-items: center; gap: 7px;
  padding: 8px 14px 8px 11px; border-radius: 10px; border: 1px solid rgba(214, 178, 110, .65); cursor: pointer; font: 600 .86rem/1 Georgia, serif;
  color: #3b2a14; background: linear-gradient(#f4e6c4, #dcc59a); box-shadow: 0 4px 14px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .6);
  transform: none !important; transition: filter .15s, box-shadow .15s; }
#hazbejaroOverlay .mx-hb-rendez i { font-style: normal; font-size: 1.05rem; }
#hazbejaroOverlay .mx-hb-rendez:hover { filter: brightness(1.06); box-shadow: 0 4px 18px rgba(255, 210, 130, .45), inset 0 1px 0 rgba(255, 255, 255, .6); }
#hazbejaroOverlay .mx-hb-rendez.be { background: linear-gradient(#ffe7a8, #e9bf64); }
#hazbejaroOverlay .mx-hb-alap { position: absolute; right: 112px; bottom: 58px; z-index: 30; display: none; align-items: center;
  padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(214, 178, 110, .55); cursor: pointer; font: 600 .8rem/1 Georgia, serif;
  color: #f2e3c2; background: rgba(28, 20, 10, .86); box-shadow: 0 4px 14px rgba(0, 0, 0, .45); transform: none !important; }
#hazbejaroOverlay .mx-hb-alap:hover { background: rgba(60, 42, 20, .92); border-color: rgba(255, 226, 160, .85); }
#hazbejaroOverlay .mx-hb-rendez.be + .mx-hb-alap { display: flex; }
.mx-hb-szin.rendez ~ .mx-hb-lab, #hazbejaroOverlay:has(.mx-hb-szin.rendez) .mx-hb-lab { display: none; }
.mx-hb-szin.rendez .mx-hb-targy { cursor: grab; touch-action: none; }
.mx-hb-szin.rendez .mx-hb-targy img { outline: 1px dashed rgba(255, 226, 160, .75); outline-offset: 3px; }
.mx-hb-szin.rendez .mx-hb-targy.fogva { cursor: grabbing; }
.mx-hb-szin.rendez .mx-hb-targy.fogva img { filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .55)) drop-shadow(0 0 6px #ffe2a0); outline-color: #ffe2a0; }
.mx-hb-targy.mentve img { animation: mxHbMentve .7s ease-out; }
@keyframes mxHbMentve { 40% { filter: drop-shadow(0 0 10px #b9f0a0) drop-shadow(0 0 3px #b9f0a0); } }
.mx-hb-szin.rendez .mx-hb-pont, .mx-hb-szin.rendez .mx-hb-trofea { pointer-events: none; }
@media (max-width: 700px) {
  #hazbejaroOverlay .mx-hb-rendez { bottom: 100px; padding: 6px 10px; font-size: .78rem; }
  #hazbejaroOverlay .mx-hb-alap { bottom: 100px; right: 100px; padding: 6px 10px; font-size: .74rem; }
}

.mx-hb-alak { position: absolute; transform: translateX(-50%); padding: 0; border: 0; background: transparent; cursor: pointer; line-height: 0; user-select: none; }
.mx-hb-szin.rendez .mx-hb-alak { cursor: grab; touch-action: none; }
.mx-hb-szin.rendez .mx-hb-alak img { outline: 1px dashed rgba(255, 226, 160, .75); outline-offset: 3px; }
.mx-hb-alak.huz { cursor: grabbing; }
.mx-hb-alak.huz img { filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .6)) drop-shadow(0 0 7px rgba(243, 215, 146, .75)); }
.mx-hb-alak img { height: 100%; width: auto; display: block; filter: drop-shadow(0 6px 7px rgba(0, 0, 0, .55)); transition: filter .15s, transform .15s; transform-origin: 50% 100%; }
.mx-hb-alak:hover img, .mx-hb-alak:focus-visible img { filter: drop-shadow(0 6px 7px rgba(0, 0, 0, .55)) drop-shadow(0 0 7px rgba(243, 215, 146, .75)); transform: scale(1.02); }
