:root { --bg: #0d0d0d; --panel: rgba(16,16,16,0.92); --panel-border: rgba(255,255,255,0.06); --text: #f5f1e8; --muted: #d8d0c2; --accent: #d59b3d; --accent-dark: #8a8d2f; --disabled: #7c7c7c; --shadow: 0 20px 40px rgba(0,0,0,0.45); }
body { display: flex; align-items: center; justify-content: center; overscroll-behavior: contain; }
.app { position: relative; width: 420px; height: 900px; max-width: 100vw; max-height: 100dvh; overflow: hidden; background: #111; }
#map { width: 100%; height: 100%; position: relative; }
.top-progress { position: absolute; top: 26px; left: 50%; z-index: 998; display: flex; align-items: center; gap: 12px; transform: translateX(-50%); }
.top-progress.off { display: none; }
.progress-bar { width: 220px; height: 18px; border-radius: 999px; background: rgba(83,88,42,0.7); overflow: hidden; backdrop-filter: blur(2px); }
.progress-bar__fill { height: 100%; border-radius: 999px; background: rgba(172,180,98,0.8); }
.progress-text { color: #53582a; font-size: 26px; font-weight: 500; }

#team_name { position: absolute; top: 54px; left: 50%; z-index: 998; transform: translateX(-50%); color: #53582a; font-size: 26px; font-weight: 500; text-align: center; }

.poi-marker-wrap { background: transparent !important; border: 0 !important; }
.poi-marker { position: relative; width: 58px; height: 58px; will-change: transform, filter, opacity; }
.poi-marker__img { display: block; width: 58px; height: 58px; object-fit: contain; pointer-events: none; user-select: none; }
.poi-marker__number { position: absolute; top: 44%; left: 50%; transform: translate(-50%, -58%); z-index: 2; font-size: 15px; font-weight: 800; line-height: 1; color: #000; pointer-events: none; text-shadow: 0 0 0 rgba(0,0,0,0); }
.poi-marker__number--flash { animation: poiNumberFlash 0.9s ease; }

@keyframes poiNumberFlash { 0% { transform: translate(-50%, -58%) scale(0.7); opacity: 0.5; text-shadow: 0 0 0 rgba(255,230,130,0), 0 0 0 rgba(255,230,130,0); } 35% { transform: translate(-50%, -58%) scale(1.35); opacity: 1; text-shadow: 0 0 12px rgba(255,230,130,0.95), 0 0 26px rgba(255,230,130,0.65); } 100% { transform: translate(-50%, -58%) scale(1); opacity: 1; } }
.poi-marker--activate-bounce { animation: poiActivateBounce 1.05s cubic-bezier(.18,.89,.32,1.28); transform-origin: 50% 85%; }
@keyframes poiActivateBounce { 0% { transform: scale(0.45) rotate(-8deg); opacity: 0.35; filter: brightness(1.4) saturate(1.35); } 22% { transform: scale(1.32) rotate(4deg); opacity: 1; filter: brightness(1.25) saturate(1.25); } 40% { transform: scale(0.9) rotate(-2deg); } 58% { transform: scale(1.14) rotate(1deg); } 76% { transform: scale(0.97); } 100% { transform: scale(1) rotate(0deg); opacity: 1; filter: brightness(1) saturate(1); } }

.player-dot { width: 20px; height: 20px; border-radius: 999px; background: #3559a8; border: 3px solid #ffffff; box-shadow: 0 0 0 4px rgba(53,89,168,0.2); }

.poi-activate-shockwave-wrap, .poi-activate-burst-wrap, .poi-activate-glow-wrap { background: transparent !important; border: 0 !important; }
.poi-activate-shockwave, .poi-activate-burst, .poi-activate-glow { position: relative; width: 100%; height: 100%; border-radius: 999px; pointer-events: none; }
.poi-activate-shockwave::before, .poi-activate-shockwave::after { content: ''; position: absolute; top: 50%; left: 50%; border-radius: 999px; transform: translate(-50%, -50%); }
.poi-activate-shockwave::before { width: 26px; height: 26px; border: 4px solid rgba(255,214,102,0.95); box-shadow: 0 0 24px rgba(255,214,102,0.45); animation: poiShockwaveOuter 1.2s ease-out forwards; }
.poi-activate-shockwave::after { width: 26px; height: 26px; border: 2px solid rgba(255,245,190,0.95); animation: poiShockwaveInner 1s ease-out forwards; }
@keyframes poiShockwaveOuter { 0% { width: 24px; height: 24px; opacity: 1; } 100% { width: 150px; height: 150px; opacity: 0; } }
@keyframes poiShockwaveInner { 0% { width: 16px; height: 16px; opacity: 0.95; } 100% { width: 96px; height: 96px; opacity: 0; } }

.poi-activate-glow::before { content: ''; position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; border-radius: 999px; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255,223,123,0.95) 0%, rgba(255,223,123,0.45) 35%, rgba(255,223,123,0.08) 58%, rgba(255,223,123,0) 76%); animation: poiGlowPulse 1.15s ease-out forwards; }
@keyframes poiGlowPulse { 0% { transform: translate(-50%, -50%) scale(0.4); opacity: 1; } 55% { transform: translate(-50%, -50%) scale(1.9); opacity: 0.75; } 100% { transform: translate(-50%, -50%) scale(2.6); opacity: 0; } }

.poi-activate-spark { position: absolute; top: 50%; left: 50%; width: 8px; height: 24px; margin-left: -4px; margin-top: -12px; border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,225,130,0.92) 45%, rgba(255,180,50,0) 100%); transform-origin: 50% 100%; animation: poiSparkBurst 0.8s ease-out forwards; opacity: 0; }
.poi-activate-spark--1 { transform: rotate(0deg) translateY(-32px); animation-delay: 0.02s; }
.poi-activate-spark--2 { transform: rotate(60deg) translateY(-32px); animation-delay: 0.05s; }
.poi-activate-spark--3 { transform: rotate(120deg) translateY(-32px); animation-delay: 0.08s; }
.poi-activate-spark--4 { transform: rotate(180deg) translateY(-32px); animation-delay: 0.03s; }
.poi-activate-spark--5 { transform: rotate(240deg) translateY(-32px); animation-delay: 0.07s; }
.poi-activate-spark--6 { transform: rotate(300deg) translateY(-32px); animation-delay: 0.1s; }
@keyframes poiSparkBurst { 0% { opacity: 0; transform-origin: 50% 100%; } 20% { opacity: 1; } 100% { opacity: 0; transform-origin: 50% 100%; filter: blur(1px); } }

.poi-modal-container { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 999; background: rgba(0,0,0,0.7); }
.poi-modal-content { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #ffe7c9; }
.poi-modal-error { position: absolute; top: 0%; left: 0%; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px; font-size: 16px; line-height: 1.4; color: #fff; }

.leaflet-bottom.leaflet-right { display: none !important; }

.poi-modal-task { position: absolute; width: 100%; max-height: 84%; bottom: -80%; opacity: 0.7; transition: 0.6s; background: url('/modules/main/images/background-gamepopup.webp') no-repeat; background-size: cover; border-top-left-radius: 20px; border-top-right-radius: 20px; padding: 50px 20px 40px; display: flex; flex-direction: column; }
.poi-modal-task.show { bottom: 0; opacity: 1; }
.poi-modal-close { position: absolute; left: 44px; top: -22px; width: 44px; height: 44px; background: url('/modules/main/images/back.png') no-repeat; background-size: cover; cursor: pointer; }
.task-title { position: absolute; top: -74px; left: 50%; opacity: 0; transform: translateX(-50%) scale(0); transition: 0.4s; transition-delay: 0.16s; width: 120px; height: 120px; background: url('/modules/main/images/task-active.png') no-repeat; background-size: cover; cursor: pointer; }
.task-title span { position: absolute; left: 50%; transform: translateX(-50%); top: 34px; font-size: 26px; font-weight: 600; color: #af854b; }
.poi-modal-task.show .task-title { opacity: 1; transform: translateX(-50%) scale(1); }

.poi-modal-task .wrapper { width: 100%; color: #ffe7c9; overflow-y: auto; }
.poi-modal-task .wrapper::-webkit-scrollbar-thumb { background-color: #af854b; }
.poi-modal-task .quote-text { font-style: italic; padding: 0 16px; margin-bottom: 30px; font-size: 16px; }
.poi-modal-task .title { font-weight: 600; text-align: center; font-size: 18px; }
.poi-modal-task .text1 { text-align: center; margin: 20px 0 30px; font-size: 20px; line-height: 210%; }

.poi-modal-popup { position: absolute; width: calc(100% - 40px); left: 20px; max-height: 84%; background: url('/modules/main/images/background-gamepopup.webp') no-repeat; background-size: cover; border-radius: 20px; padding: 50px 20px 40px; display: flex; flex-direction: column; color: white; }
.poi-modal-popup .task-title { opacity: 1; transform: translateX(-50%) scale(1); }
.poi-modal-popup .poi-modal-close { position: absolute; left: initial; right: 44px; top: -22px; width: 44px; height: 44px; background: url('/modules/main/images/close.png') no-repeat; background-size: cover; cursor: pointer; }
.poi-modal-popup button.button { margin-top: 20px; }

.finish-popup { position: absolute; width: 100%; height: 100%; left: 0px; top: 0; z-index: 99999; background: url('/modules/main/images/background-gamepopup.webp') no-repeat, black; background-size: cover; background-position: center center; display: flex; flex-direction: column; color: white; }


.input-wrapper { padding: 0 20px; position: relative; display: flex; flex-direction: column; gap: 20px; }
.input-wrapper .error-content { color: #f44336; font-size: 17px; font-weight: 600; padding-left: 10px; display: none; }
.input-wrapper.error .error-content { display: block; }
.input-wrapper.error input[type="text"] { box-shadow: 0 0 0 0.25rem rgb(244 67 54 / 100%); }
.input-wrapper button#check { background: linear-gradient(to right, #7e8999, #494c74); color: white; width: 100%; height: 54px; font-size: 20px; letter-spacing: 2px; border: 0; border-radius: 18px; }
button.button { background: linear-gradient(to right, #958f7c, #4e512b); color: white; width: 100%; height: 54px; font-size: 20px; letter-spacing: 2px; border: 0; border-radius: 18px; }
button.button:active { filter: brightness(90%); }

input[type="text"] { background: rgba(100,100,100,0.6); border-radius: 18px; color: #ffe7c9 !important; font-size: 20px; font-weight: 600; border: 0px; padding: 0px 24px; height: 54px; }
input[type="text"]::placeholder { color: #ffe7c9 !important; opacity: 0.6; }
input[type="text"]:focus { background: rgba(140,140,140,0.6); box-shadow: initial; }
input[type="text"]:disabled { box-shadow: 0 0 0 0.25rem rgb(162 147 102 / 100%); background: rgba(50,53,29,0.7); text-align: center; text-shadow: 0 0 5px #ffdeaf; }
input[type="text"].hidden { display: none; }

.solved-text { text-align: center; font-weight: 700; text-shadow: 0 0 5px #ffdeaf; padding: 30px 0; }
.poi-modal-task img.task_image { width: 100%; margin: 20px auto; }

.virtual-keyboard { max-width: 370px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 40px 10px 20px 10px; border-radius: 6px; border: 2px solid white; background: rgba(0,0,0,0.9); position: absolute; left: 50%; transform: translateX(-50%); z-index: 4; width: 100%; margin-top: -50%; }
.virtual-keyboard > div { width: 46px; height: 46px; line-height: 50px; border-radius: 6px; text-align: center; background: rgba(255,255,255,0.1); cursor: pointer; box-shadow: 0 0 5px rgba(255,255,255,0.8); transition: 0.1s; }
.virtual-keyboard > div:active, .virtual-keyboard > b.delete:active { transform: scale(0.9); box-shadow: 0 0 10px rgba(255,255,0,0.8); }
.virtual-keyboard > b.delete { width: 46px; height: 46px; line-height: 50px; border-radius: 6px; text-align: center; background: black; cursor: pointer; box-shadow: 0 0 5px rgba(255,255,255,0.8); transition: 0.1s; }
.virtual-keyboard > b.delete:before { content: ""; width: 100%; height: 100%; -webkit-mask-image: url("/libraries/Feather/delete.svg"); -webkit-mask-repeat: no-repeat; -webkit-mask-size: 22px; -webkit-mask-position: center center; background: red; display: block; }
.virtual-keyboard > b.close-keyboard { position: absolute; top: 0; right: 0; width: 40px; height: 40px; cursor: pointer; }
.virtual-keyboard > b.close-keyboard:before { content: ""; width: 100%; height: 100%; -webkit-mask-image: url("/libraries/Feather/x.svg"); -webkit-mask-repeat: no-repeat; -webkit-mask-size: 22px; -webkit-mask-position: center center; background: white; display: block; }

.paint-wrapper { display: flex; align-items: center; justify-content: center; padding: 20px 0px 20px 20px; }
.paint-wrapper .canvas { border-radius: 3px; border: 2px solid #ffe7c9; min-width: 170px; height: 200px; display: flex; align-items: center; justify-content: center; }
.paint-wrapper .canvas > div { flex: 1; height: 100%; }
.paint-wrapper .palette { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 20px; padding: 0 20px; }
.paint-wrapper .palette > div { width: 34px; height: 34px; border-radius: 50%; background: red; }
.paint-wrapper .palette > div:nth-child(1) { background: #77b800; }
.paint-wrapper .palette > div:nth-child(2) { background: #e2a9f1; }
.paint-wrapper .palette > div:nth-child(3) { background: #ff66c4; }
.paint-wrapper .palette > div:nth-child(4) { background: #ffe6c9; }
.paint-wrapper .palette > div:nth-child(5) { background: #0cc0df; }
.paint-wrapper .palette > div:nth-child(6) { background: #b4b4b4; }
.paint-wrapper .palette > div:nth-child(7) { background: #f03f36; }
.paint-wrapper .palette > div:nth-child(8) { background: #ffffff; }
.paint-wrapper .palette > div.selected { box-shadow: 0 0 10px rgb(251 255 7 / 100%); border: 3px solid white; transform: scale(1.4); }
.paint-wrapper .palette > div.selected:nth-child(4), .paint-wrapper .palette > div.selected:nth-child(8) { border-color: #666; }


h1 { font-size: 38px; letter-spacing: 3px; margin-bottom: 20px; font-weight: 500; }
p { font-style: italic; font-size: 22px; font-weight: 300; }

.prelogin-wrapper { background: url('/modules/main/images/background-main.webp') no-repeat; background-size: cover; background-position: center top; width: 100%; height: 100%; color: white; }
.prelogin-wrapper img.language { position: absolute; top: 5%; right: 10%; width: 15%; }
.prelogin-wrapper .init-wrapper { position: absolute; bottom: 20dvh; width: 100%; padding: 0 10%; }

.login-wrapper { background: url('/modules/main/images/background-enter.webp') no-repeat; background-size: cover; background-position: center top; width: 100%; height: 100%; color: white; text-align: center; padding-top: 20dvh; }
.login-wrapper p { margin: 0; text-align: left; }
.login-wrapper button.button { margin-top: 10px; }

input[type="text"][data-id="code"] { text-transform: uppercase; }

.logos { position: absolute; bottom: 20px; width: 100%; padding: 0 5% 0 10%; display: flex; align-items: flex-start; justify-content: center; }
.logos img { height: 8dvh; }
.logos img.findthecloud { margin: 0 0 0 auto; }

.intro-wrapper { background: url('/modules/main/images/background-enter.webp') no-repeat; background-size: cover; background-position: center top; width: 100%; height: 100%; color: white; text-align: center; }
.intro-wrapper .intro-contents { max-width: 330px; margin: 40px auto 0; }
.intro-description { background: rgba(0,0,0,0.5); border-bottom-left-radius: 60px; border-bottom-right-radius: 60px; font-size: 19px; padding: 40px 30px 30px; }
.info-cards { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px; width: 100%; font-size: 17px; font-weight: 600; }
.info-cards > div { width: 100%; background: rgba(255,255,255,0.85); border-radius: 40px; padding: 8px 12px; display: flex; align-items: center; justify-content: flex-start; gap: 8px; color: black; }
.info-cards > div img { width: 30px; }

.intro-wrapper p { margin-top: 4px; font-size: 16px; text-align: left; }
.intro-wrapper button.button { margin-top: 20px; }

/*#map:after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, transparent, transparent, rgba(0,0,0,0.6)); z-index: 998; }*/
.hint { position: absolute; bottom: 20px; right: 20px; width: 30px; height: 30px; background: url('/modules/main/images/hint.png') no-repeat; background-size: cover; border-radius: 50%; z-index: 999; }

.bulp-wrapper { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 10px 0 20px; }
.bulp { width: 30px; height: 40px; position: relative; cursor: pointer; transition: 0.2s; }
.bulp:before { content: ""; width: 100%; height: 100%; -webkit-mask-image: url('/modules/main/images/bulp.svg'); -webkit-mask-repeat: no-repeat; -webkit-mask-size: cover; -webkit-mask-position: center center; background: yellow; display: block; }
.bulp:hover, .bulp:active { transform: scale(1.2); }
.bulp.off:before { background: #afafaf; }

.hint_title { font-size: 20px; font-weight: 700; text-align: center; padding: 30px 0 20px; }
.hint_subtitle { text-decoration: underline; padding: 30px 0 6px;  }
ul.hint_ul { margin: 0; padding: 0 0 0 20px; }
ul.hint_ul li { padding: 2px 0; }

.modal .modal-box { background: url('/modules/main/images/background-gamepopup.webp') no-repeat; background-size: cover; color: #ffe7c9; }
button.close:before { background: #ffe7c9; }
.btn.blue { background: linear-gradient(to right, #7e8999, #494c74); color: #ffe7c9; border-color: #494c74; }
.btn.gray { opacity: 0.7; }

@media (max-width: 1024px) { 
.app { position: relative; width: 100vw; height: 100dvh; max-width: initial; max-height: initial; }
}











/* A map konténer legyen relative, ha még nem az */
.map-wrap,
#map-wrapper {
    position: relative;
}

/* Tűzijáték overlay */
.fireworks-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

/* opcionális finom flash a robbanásokhoz */
.fireworks-flash {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(255,220,120,0.14), rgba(255,200,80,0.04) 35%, transparent 70%);
    opacity: 0;
    transition: opacity 180ms ease-out;
}

.fireworks-flash.is-active {
    opacity: 1;
}