/* Mellékzaj-kvíz játék – DCQ-látvány (jóváhagyott látványpróba: Kviz/APP/Latvanyproba, J01–J09, T01–T07) */
@font-face { font-family: "Mont"; font-weight: 900; src: url("fonts/Montserrat-Black.ttf"); font-display: block; }
@font-face { font-family: "Mont"; font-weight: 800; src: url("fonts/Montserrat-ExtraBold.ttf"); font-display: block; }
@font-face { font-family: "Mont"; font-weight: 700; src: url("fonts/Montserrat-Bold.ttf"); font-display: block; }

:root {
  --mustar: #f4c13b; --turkiz: #6db3a6; --rozsa: #e98a8e; --levendula: #a8a4de; --malyva: #b98cb3;
  --korall: #ff6a45; --krem: #efe8da; --papir: #f5f0e5; --tinta: #111; --feher: #fff;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: "Mont", system-ui, sans-serif; font-weight: 800; color: var(--tinta); background: var(--papir);
       -webkit-tap-highlight-color: transparent; overflow: hidden; }
.rejtett { display: none !important; }

/* hátterek: a videó raszterhátterei (paletta sorrendben) */
.h0 { background: var(--mustar) url("hatter/h0.png") center/cover; }
.h1 { background: var(--turkiz) url("hatter/h1.png") center/cover; }
.h2 { background: var(--rozsa) url("hatter/h2.png") center/cover; }
.h3 { background: var(--levendula) url("hatter/h3.png") center/cover; }
.h4 { background: var(--malyva) url("hatter/h4.png") center/cover; }
.h5 { background: var(--korall) url("hatter/h5.png") center/cover; }
.h6 { background: var(--papir) url("hatter/h6.png") center/cover; }
.c0 { background: var(--mustar); } .c1 { background: var(--turkiz); } .c2 { background: var(--rozsa); }
.c3 { background: var(--levendula); } .c4 { background: var(--malyva); } .c5 { background: var(--korall); }
.c6 { background: var(--krem); } .cf { background: var(--feher); } .ct { background: var(--tinta); color: var(--feher); }

.csik { position: absolute; left: 0; right: 0; top: 0; height: 8px; z-index: 5;
        background: linear-gradient(90deg, var(--korall) 0 16%, var(--mustar) 16% 33%, var(--turkiz) 33% 50%,
                    var(--levendula) 50% 66%, var(--rozsa) 66% 83%, var(--malyva) 83%); }

/* kártya: fekete keret, eltolt fekete árnyék, enyhe dőlés */
.k { border: 5px solid var(--tinta); box-shadow: 10px 10px 0 var(--tinta); padding: .25em .6em;
     font-weight: 900; text-transform: uppercase; line-height: 1.1; display: inline-block; }
.k.kis { border-width: 3px; box-shadow: 5px 5px 0 var(--tinta); padding: .15em .45em; }
.k.normal { text-transform: none; }
.d1 { transform: rotate(-1.5deg); } .d2 { transform: rotate(1.2deg); } .d3 { transform: rotate(-.8deg); }

/* ==================================================================== kivetítő: 1920×1080-as színpad */
body.tv { background: #000; }
#szinpad { position: absolute; width: 1920px; height: 1080px; left: 50%; top: 50%; transform-origin: 0 0; overflow: hidden; }
.kep-reteg { position: absolute; inset: 0; }
.logo { position: absolute; left: 60px; top: 46px; height: 92px; }
.logo.kicsi { height: 64px; left: 48px; top: 34px; width: 64px; object-fit: cover; object-position: left; }
.kozep { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 38px; }

.fej { position: absolute; left: 130px; right: 60px; top: 38px; display: flex; gap: 22px; align-items: center; font-size: 30px; }
.fej .jobb { margin-left: auto; display: flex; gap: 16px; align-items: center; }
.potty { display: inline-flex; gap: 8px; }
.potty i { width: 34px; height: 34px; border-radius: 50%; border: 5px solid var(--tinta); background: var(--feher); display: inline-block; }
.potty i.tele { background: var(--tinta); box-shadow: inset 0 0 0 5px var(--feher); }

/* kérdés-elrendezés (J04, J05) */
.media-hely { position: absolute; left: 90px; top: 150px; width: 900px; height: 760px; display: flex; align-items: center; justify-content: center; }
.kerdes-hely { position: absolute; left: 1010px; right: 70px; top: 170px; bottom: 190px; display: flex; flex-direction: column; justify-content: center; gap: 30px; }
.kerdes-hely.szeles { left: 160px; right: 160px; }
.kerdes-cim { align-self: center; font-size: 46px; text-transform: none; max-width: 100%; text-align: center; }
.opciok { display: flex; flex-direction: column; gap: 26px; }
.opcio { display: flex; align-items: stretch; font-size: 34px; position: relative; }
.opcio .betu { background: var(--tinta); color: var(--feher); width: 64px; display: flex; align-items: center; justify-content: center;
               font-size: 36px; font-weight: 900; flex: none; border: 5px solid var(--tinta); }
.opcio .szov { flex: 1; border: 5px solid var(--tinta); border-left: 0; box-shadow: 10px 10px 0 var(--tinta);
               padding: 10px 18px; text-align: center; font-weight: 900; text-transform: uppercase; display: flex; align-items: center; justify-content: center; min-height: 78px; }
.opcio.halvany { opacity: .45; }
.opcio .sav { flex: none; width: 260px; display: flex; align-items: center; gap: 10px; margin-left: 24px; }
.opcio .sav b { height: 34px; border: 4px solid var(--tinta); background: var(--krem); }
.opcio .sav span { border: 4px solid var(--tinta); background: var(--feher); font-size: 24px; padding: 0 8px; }
.opcio.helyes .szov { outline: 6px solid var(--feher); outline-offset: 4px; }
.opcio.helyes .sav b { background: var(--korall); }
.valaszolt { align-self: center; font-size: 28px; }
.erdekesseg { align-self: center; font-size: 28px; text-transform: none; font-weight: 800; max-width: 760px; text-align: center; background: var(--feher); }
.megfejtes { align-self: center; font-size: 42px; background: var(--feher); }

/* időzítő: fehér sáv, közepén a „zajcsík” */
.ido { position: absolute; left: 90px; right: 90px; bottom: 56px; height: 64px; border: 5px solid var(--tinta); background: var(--feher);
       box-shadow: 10px 10px 0 var(--tinta); overflow: hidden; }
.ido .tolt { position: absolute; left: 0; top: 0; bottom: 0; background: var(--krem); }
.ido canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ido.vege .tolt { background: var(--korall); }

/* borító és fotó */
.lemez-hat { position: absolute; width: 620px; height: 620px; animation: forog 6s linear infinite; }
@keyframes forog { to { transform: rotate(360deg); } }
.keret { background: var(--feher); border: 5px solid var(--tinta); box-shadow: 12px 12px 0 var(--tinta); padding: 14px; position: relative; }
.keret canvas, .keret img, .keret video { display: block; }
.kepsor { display: flex; gap: 28px; align-items: flex-start; }
.kepsor figure { margin: 0; text-align: center; }
.kepsor figcaption { margin-top: 18px; font-size: 22px; }
.sorok { font-size: 40px; text-transform: none; font-weight: 800; background: var(--feher); padding: 30px 40px; line-height: 1.35; max-width: 860px; white-space: pre-line; }
.hang-lemez { width: 560px; height: 560px; animation: forog 3s linear infinite; }
.hang-lemez.all { animation-play-state: paused; }

/* lobby (J02) */
.qr-kartya { position: absolute; left: 130px; top: 230px; width: 520px; text-align: center; }
.qr-kartya img { width: 440px; height: 440px; background: var(--feher); border: 5px solid var(--tinta); box-shadow: 10px 10px 0 var(--tinta); padding: 18px; border-radius: 18px; }
.qr-kartya .cim { margin-top: 26px; font-size: 26px; }
.qr-kartya .kodsor { margin-top: 26px; display: flex; gap: 18px; align-items: center; justify-content: center; }
.qr-kartya .kodsor .k:last-child { font-size: 72px; letter-spacing: 4px; }
.lobby-jobb { position: absolute; left: 740px; right: 80px; top: 70px; bottom: 60px; display: flex; flex-direction: column; align-items: center; gap: 34px; }
.lobby-cim { font-size: 64px; }
.nevek { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 46px; width: 100%; max-width: 980px; }
.nevek.sok { grid-template-columns: repeat(3, 1fr); gap: 18px 30px; }
.nevek .k { font-size: 30px; text-align: center; }
.nevek.sok .k { font-size: 24px; }

/* nagy feliratok */
.oriasi { font-size: 210px; padding: .1em .35em; }
.nagy { font-size: 96px; }
.kozepes { font-size: 54px; }
.felirat { font-size: 30px; }
.szamkartya { font-size: 300px; width: 380px; height: 520px; display: flex; align-items: center; justify-content: center; padding: 0;
              animation: puff .35s ease-out; }
@keyframes puff { from { transform: scale(1.35) rotate(-6deg); opacity: .2; } to { transform: scale(1) rotate(-3deg); opacity: 1; } }
.gomb { font-family: inherit; font-size: 40px; cursor: pointer; }

/* ranglista (J07) */
.rang { display: flex; flex-direction: column; gap: 14px; width: 1200px; }
.rang .sor { display: grid; grid-template-columns: 90px 1fr 250px 80px; gap: 24px; align-items: center; font-size: 34px; }
.rang .sor .k { text-align: center; white-space: nowrap; }
.rang.suru { gap: 6px; }
.rang.suru .sor { font-size: 27px; }
.rang.suru .sor .k { box-shadow: 7px 7px 0 var(--tinta); border-width: 4px; }
.rang .valt { font-size: 24px; background: var(--feher); }
.dobogo { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; align-items: flex-end; gap: 20px; }
.dobogo .hely { width: 300px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.dobogo .oszlop { width: 100%; border: 5px solid var(--tinta); border-bottom: 0; box-shadow: 10px 0 0 var(--tinta);
                  display: flex; justify-content: center; font-size: 120px; font-weight: 900; padding-top: 20px; }

/* szünet (J09) */
#szunet { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 50px; }
#nyito { position: absolute; inset: 0; z-index: 15; width: 100%; height: 100%; background: #000; }
.allapotjel { position: absolute; right: 18px; bottom: 10px; font-size: 16px; opacity: .6; z-index: 30; }

/* ==================================================================== telefon (T01–T07) */
body.tel { overflow: auto; }
.tel-lap { min-height: 100vh; min-height: 100dvh; padding: 18px 18px 30px; display: flex; flex-direction: column; gap: 20px; position: relative; }
.tel-fej { display: flex; gap: 10px; align-items: center; font-size: 13px; flex-wrap: wrap; padding-top: 6px; }
.tel-fej img { height: 34px; width: 34px; object-fit: cover; object-position: left; }
.tel-fej .jobb { margin-left: auto; }
.tel-fej .potty i { width: 18px; height: 18px; border-width: 3px; }
.tel-fej .potty i.tele { box-shadow: inset 0 0 0 3px var(--feher); }
.tel-kerdes { background: var(--feher); font-size: 19px; text-transform: none; text-align: center; align-self: stretch; }
.tel-opciok { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.tel-opcio { display: flex; align-items: stretch; font-family: inherit; font-size: 19px; font-weight: 900; text-transform: uppercase;
             border: 0; padding: 0; background: none; color: inherit; cursor: pointer; text-align: center; transition: transform .12s, opacity .2s; }
.tel-opcio .betu { width: 42px; background: var(--tinta); color: var(--feher); display: flex; align-items: center; justify-content: center; border: 4px solid var(--tinta); flex: none; }
.tel-opcio .szov { flex: 1; border: 4px solid var(--tinta); border-left: 0; box-shadow: 7px 7px 0 var(--tinta); padding: 16px 12px; min-height: 70px;
                   display: flex; align-items: center; justify-content: center; }
.tel-opcio:active { transform: translate(3px, 3px); }
.tel-opcio.halvany { opacity: .4; }
.tel-opcio.valasztott .szov { outline: 4px solid var(--feher); outline-offset: 3px; }
.tel-opcio:disabled { cursor: default; }
.tel-input { font-family: inherit; font-size: 22px; font-weight: 800; padding: 14px 16px; border: 4px solid var(--tinta); box-shadow: 7px 7px 0 var(--tinta);
             width: 100%; border-radius: 0; background: var(--feher); color: var(--tinta); }
.tel-gomb { font-family: inherit; font-size: 24px; font-weight: 900; text-transform: uppercase; border: 4px solid var(--tinta); box-shadow: 7px 7px 0 var(--tinta);
            padding: 14px 26px; background: var(--mustar); color: var(--tinta); cursor: pointer; align-self: center; }
.tel-gomb:active { transform: translate(3px, 3px); box-shadow: 4px 4px 0 var(--tinta); }
.tel-kozep { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; text-align: center; }
.tel-nagy { font-size: 46px; }
.tel-felirat { font-size: 14px; }
.tel-felirat:not(.ct) { background: var(--feher); }
.tel-lab { font-size: 11px; background: var(--tinta); color: var(--feher); align-self: center; }
.tel-hiba { background: var(--korall); font-size: 15px; text-transform: none; }
.tel-cimke { font-size: 13px; align-self: flex-start; }
.urlap { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 420px; align-self: center; }
.urlap label { font-size: 12px; align-self: flex-start; }
#tel-szunet { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; }

/* ==================================================================== játékmester-vezérlő (egyszerű, munkafelület) */
body.jm { overflow: auto; background: var(--papir); font-weight: 700; }
.jm-lap { max-width: 1200px; margin: 0 auto; padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.jm-fej { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.jm-fej img { height: 44px; }
.jm-doboz { background: var(--feher); border: 3px solid var(--tinta); box-shadow: 6px 6px 0 var(--tinta); padding: 14px 18px; }
.jm-racs { display: grid; grid-template-columns: 1fr 360px; gap: 18px; }
@media (max-width: 900px) { .jm-racs { grid-template-columns: 1fr; } }
.jm-gomb { font-family: inherit; font-weight: 900; font-size: 18px; border: 3px solid var(--tinta); box-shadow: 4px 4px 0 var(--tinta); padding: 10px 16px;
           background: var(--krem); cursor: pointer; color: var(--tinta); }
.jm-gomb.fo { background: var(--mustar); font-size: 26px; padding: 18px 26px; width: 100%; }
.jm-gomb.veszely { background: var(--korall); }
.jm-gomb:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--tinta); }
.jm-gomb.kicsi { font-size: 13px; padding: 4px 8px; box-shadow: 2px 2px 0 var(--tinta); }
.jm-tabla { width: 100%; border-collapse: collapse; font-size: 15px; }
.jm-tabla td, .jm-tabla th { border-bottom: 1px solid #ccc; padding: 6px 4px; text-align: left; }
.jm-tabla input { width: 56px; font: inherit; }
.online { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #aaa; }
.online.be { background: #2a9d4b; }
.jm-opcio { padding: 4px 8px; margin: 3px 0; border: 2px solid var(--tinta); }
.jm-opcio.helyes { background: var(--turkiz); }
.jm-cimke { font-size: 12px; text-transform: uppercase; opacity: .7; }
.jm-urlap input, .jm-urlap select { font: inherit; padding: 8px; border: 3px solid var(--tinta); }
.jm-uzenet { padding: 8px 12px; border: 3px solid var(--tinta); background: var(--mustar); }
.jm-uzenet.hiba { background: var(--korall); }
a { color: inherit; }

/* ==================================================================== CT QUIZ platform (13/3.): kiegészítések */
.jm-fej .szovlogo { position: static; font-size: 26px; }
.jm-sor { display: flex; gap: 12px; align-items: center; margin: 8px 0; flex-wrap: wrap; }
.jm-gomb.lej { background: var(--turkiz); }
.jm-gomb:disabled { opacity: .4; cursor: not-allowed; }
.kapcs { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; background: none; border: 0; cursor: pointer; color: inherit; }
.kapcs-sav { width: 46px; height: 24px; border: 3px solid var(--tinta); border-radius: 14px; background: var(--krem); position: relative; display: inline-block; }
.kapcs-sav i { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--tinta); }
.kapcs[aria-pressed="true"] .kapcs-sav { background: var(--turkiz); }
.kapcs[aria-pressed="true"] .kapcs-sav i { left: 24px; }
.lejallapot { display: flex; gap: 10px; align-items: center; margin-top: 10px; font-size: 15px; }
.lejallapot i { width: 12px; height: 12px; border-radius: 50%; background: var(--korall); display: inline-block; border: 2px solid var(--tinta); }
.jm-tabla .jo { color: #1d7a4a; } .jm-tabla .rossz { color: #b3361b; }
.szerk-link { position: fixed; right: 14px; bottom: 10px; font-size: 12px; color: inherit; opacity: .6; }
/* indításra váró hang- és videókérdés: nincs válaszidő-sáv */
#szinpad.inditasra-var .ido { visibility: hidden; }

/* 15/3–15/4: mai kvízek, új játék ugyanazzal a társasággal */
.tel-gomb.masodlagos { background: var(--feher); font-size: 16px; box-shadow: 4px 4px 0 var(--tinta); padding: 8px 18px; }
.jm-sor.halvany { opacity: .6; }
.jm-megj { font-size: 13px; font-weight: 600; opacity: .7; margin: 0; }
.mai-gomb { font-size: 18px; line-height: 1; padding: 4px 10px; }
.mai-gomb.be { background: #f4c23a; }
.mai-doboz { border-color: var(--tinta); background: #fff8e1; }
.jm-doboz.uj-jatek { background: #e9f6ef; }
.jm-doboz.uj-jatek select { font: inherit; font-weight: 600; padding: 8px; border: 3px solid var(--tinta); }

/* 4. szakasz: fokozatos felfedés jelzése a kivetítőn */
.felfedes-jel { position: absolute; top: 0; right: 40px; z-index: 3; font-size: 22px; }

/* 4. szakasz: szerkesztői előnézet (a kivetítő balra méretezve, jobbra a telefon) */
body.elonezet { background: #2b2b2b; }
.elo-sav { position: fixed; left: 0; right: 0; top: 0; height: 56px; z-index: 100; display: flex; align-items: center; gap: 10px;
           padding: 0 14px; background: #fff8e1; border-bottom: 3px solid #111; font: 600 14px/1.2 Montserrat, sans-serif; }
.elo-sav b { text-transform: uppercase; margin-right: 6px; }
.elo-gomb { font: 800 13px Montserrat, sans-serif; text-transform: uppercase; border: 3px solid #111; background: #fff; color: #111;
            padding: 6px 12px; box-shadow: 3px 3px 0 #111; cursor: pointer; text-decoration: none; }
.elo-gomb.akt { background: #f4c23a; }
.elo-sav select { font: inherit; border: 2px solid #111; padding: 4px; }
.elo-megj { margin-left: auto; font-weight: 600; opacity: .7; font-size: 12px; }
#elo-tel { position: fixed; right: 12px; top: 68px; width: 375px; height: calc(100vh - 80px); max-height: 812px; border: 4px solid #111;
           background: #fff; box-shadow: 6px 6px 0 #000; }
