/* Aranyossy Adventi naptár – frontend stílus. Minden osztály aga- előtagú, hogy ne ütközzön a téma/Elementor stílusaival. */

/* ---------- Színvilágok ---------- */
.aga-root, .aga-modal {
  --bg: #fbf6ee; --paper: #fffaf2; --ink: #2b1d16; --muted: #6d5d52; --accent: #e3a92f;
  --c1: #c0392b; --t1: #fff; --c2: #1f6f4a; --t2: #fff; --c3: #e9b44c; --t3: #3a2410; --c4: #8e2a22; --t4: #fff; --c5: #2e8b57; --t5: #fff;
  --tree: #1f6f4a; --tree2: #165238; --sky1: #182746; --sky2: #3a4f7a; --ok: #2e9d5b; --bad: #c0392b; --wood: #7a4b2a;
  --g: clamp(4px, 1.4cqi, 9px);
}
.aga-pal-pasztell { --bg: #fdf8f1; --paper: #fffdf9; --ink: #3b3a4a; --muted: #6f6c7c; --accent: #e8836f;
  --c1: #f4b6a6; --t1: #5a2d24; --c2: #a9dbc8; --t2: #1f4a3d; --c3: #f7e1b5; --t3: #5b4320; --c4: #e8836f; --t4: #fff; --c5: #7cc3ab; --t5: #123c30;
  --tree: #8fcfb9; --tree2: #6bb49c; --sky1: #39466a; --sky2: #8a9cc5; --wood: #b07a55; }
.aga-pal-ejkek { --bg: #0f1d3a; --paper: #fdf6e3; --ink: #f6f1e3; --muted: #c9c3b2; --accent: #f2c14e;
  --c1: #3a5f9e; --t1: #ffe08a; --c2: #2b6aa0; --t2: #fff; --c3: #d4a843; --t3: #1a2440; --c4: #4f86b8; --t4: #fff; --c5: #8a6bb8; --t5: #fff;
  --tree: #1f5c4d; --tree2: #174739; --sky1: #081226; --sky2: #20345e; --wood: #6b4a2b; }
.aga-pal-skandinav { --bg: #f4f2ef; --paper: #fff; --ink: #2e2e2e; --muted: #6a6a6a; --accent: #c8102e;
  --c1: #c8102e; --t1: #fff; --c2: #fff; --t2: #c8102e; --c3: #9aa3a8; --t3: #fff; --c4: #e7e2da; --t4: #8a1022; --c5: #7a1020; --t5: #fff;
  --tree: #4a7464; --tree2: #3a5d50; --sky1: #2b3440; --sky2: #6c7a8a; --wood: #8b6b4f; }
.aga-pal-erdo { --bg: #f1efe6; --paper: #fbfaf4; --ink: #24301f; --muted: #5e6a55; --accent: #c9a66b;
  --c1: #2f5d3a; --t1: #f4e7c8; --c2: #6b8f47; --t2: #fff; --c3: #a0703f; --t3: #fff; --c4: #e3cf9f; --t4: #2f3d24; --c5: #3e7b5e; --t5: #fff;
  --tree: #2f5d3a; --tree2: #234a2d; --sky1: #1c2a22; --sky2: #4c6a55; --wood: #6e4a2a; }
.aga-c1 { --tile: var(--c1); --tink: var(--t1); } .aga-c2 { --tile: var(--c2); --tink: var(--t2); }
.aga-c3 { --tile: var(--c3); --tink: var(--t3); } .aga-c4 { --tile: var(--c4); --tink: var(--t4); }
.aga-c5 { --tile: var(--c5); --tink: var(--t5); }

/* ---------- Keret ---------- */
.aga-root { position: relative; /* NINCS container-type: Elementor flex konténerben a Chrome rossz (sokszoros) magasságot számolt → üres hely a naptár alatt */ color: var(--ink); font-size: 16px; line-height: 1.45; -webkit-tap-highlight-color: transparent; }
.aga-root *, .aga-modal * { box-sizing: border-box; }
.aga-stage { position: relative; overflow: hidden; background: var(--bg); border-radius: 18px; padding: clamp(16px, 3.5vw, 36px) clamp(10px, 2.6vw, 32px) 24px; }
.aga-head { position: relative; z-index: 2; text-align: center; margin-bottom: 14px; }
.aga-title { margin: 0 0 6px; color: inherit; font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: clamp(26px, 5.2vw, 44px); line-height: 1.1; }
.aga-intro { margin: 0 auto 10px; max-width: 46em; color: var(--muted); }
.aga-score { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 99px; background: var(--paper); color: #3a2a10; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.aga-score .aga-ico { width: 20px; height: 20px; color: var(--accent); }
.aga-cal { position: relative; z-index: 2; container-type: inline-size; }
.aga-status { position: relative; z-index: 2; text-align: center; margin: 16px auto 0; min-height: 1.5em; font-weight: 600; color: var(--ink); transition: transform .2s; }
.aga-status.is-flash { transform: scale(1.04); color: var(--accent); }
.aga-testbar { position: relative; z-index: 2; margin: 14px auto 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; font-size: 14px; background: #fff3c4; color: #5a4300; border-radius: 10px; padding: 8px 12px; max-width: 520px; }
.aga-reset { border: 1px solid #a07d00; background: #fff; color: #5a4300; border-radius: 8px; padding: 4px 10px; cursor: pointer; font: inherit; }
.aga-error, .aga-loading { text-align: center; padding: 30px; }
.aga-ico { width: 1em; height: 1em; display: inline-block; vertical-align: middle; }
.aga-noanim * { transition: none !important; }

/* ---------- Hóesés ---------- */
.aga-snow { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.aga-snow i { position: absolute; top: -10px; border-radius: 50%; background: #fff; box-shadow: 0 0 3px rgba(120,140,170,.5); animation: aga-fall2 linear infinite; }
@keyframes aga-fall2 { 0% { transform: translate3d(0,0,0); } 50% { transform: translate3d(18px, 55vh, 0); } 100% { transform: translate3d(-6px, 120vh, 0); } }

/* ---------- Ablak: közös váz ---------- */
.aga-w { position: relative; display: block; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; aspect-ratio: 1 / var(--h, 1); perspective: 700px; font: inherit; color: inherit; min-width: 0; touch-action: manipulation; }
.aga-w:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
.aga-in, .aga-face { position: absolute; inset: 0; border-radius: 10px; }
.aga-in { display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #fff8dc, #f3dfa6 70%, #e3c27a); box-shadow: inset 0 2px 8px rgba(0,0,0,.25); overflow: hidden; color: #b5821c; }
.aga-in .aga-iico { width: 46%; height: 46%; opacity: .85; }
.aga-in .aga-star { position: absolute; width: 58%; height: 58%; color: #f2b928; opacity: 0; transform: scale(.3) rotate(-30deg); transition: .45s cubic-bezier(.3,1.6,.5,1) .15s; filter: drop-shadow(0 2px 3px rgba(150,90,0,.4)); }
.aga-inum { position: absolute; bottom: 5%; right: 8%; font: 700 clamp(10px, 22cqi, 15px)/1 Georgia, serif; color: #8a6114; }
.aga-w.is-ok .aga-iico { opacity: 0; }
.aga-w.is-ok .aga-star { opacity: 1; transform: none; }
.aga-face { transition: transform .65s cubic-bezier(.4,.1,.2,1), opacity .45s; transform-origin: left center; }
.aga-num { position: relative; z-index: 2; font: 700 1em/1 Georgia, "Times New Roman", serif; letter-spacing: -.02em; text-shadow: 0 1px 0 rgba(0,0,0,.15); }
.aga-body { position: absolute; inset: 0; border-radius: inherit; display: grid; place-items: center; align-content: center; gap: 2px; background: var(--tile); color: var(--tink); box-shadow: 0 3px 0 rgba(0,0,0,.18), 0 6px 14px rgba(0,0,0,.12); overflow: hidden; }
.aga-fico { width: 34%; height: 34%; opacity: .55; }
.aga-w .aga-face { font-size: clamp(14px, 40%, 40px); }
/* A szám mérete a cella szélességéhez igazodik (container query) */
.aga-w { container-type: inline-size; }
.aga-w .aga-face { font-size: 36cqi; }
.aga-w .aga-inum { font-size: 18cqi; }
.aga-w.is-locked .aga-face { filter: saturate(.8) brightness(.96); }
.aga-w.is-locked:hover .aga-face { filter: saturate(.8) brightness(1); }
.aga-w:not(.is-locked):not(.is-open):hover .aga-face { transform: translateY(-3px); }
.aga-w.is-today::after { content: ""; position: absolute; inset: -5px; border-radius: 14px; border: 3px solid var(--accent); animation: aga-pulse 1.6s ease-in-out infinite; pointer-events: none; z-index: 3; }
@keyframes aga-pulse { 50% { transform: scale(1.06); opacity: .35; } }
.aga-w.is-fail .aga-in { filter: grayscale(.6); }
.is-shake { animation: aga-shake .45s; }
@keyframes aga-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------- Ablakstílusok ---------- */
/* Megforduló kártya */
.aga-sty-kartya .aga-face { transform-origin: center; backface-visibility: hidden; }
.aga-sty-kartya .aga-in { transform: rotateY(-180deg); backface-visibility: hidden; transition: transform .65s cubic-bezier(.4,.1,.2,1); }
.aga-sty-kartya .is-open .aga-face { transform: rotateY(180deg); }
.aga-sty-kartya .is-open .aga-in { transform: rotateY(0); }
.aga-sty-kartya .aga-body::before { content: ""; position: absolute; inset: 7%; border: 2px dashed currentColor; border-radius: 8px; opacity: .35; }

/* Kétszárnyú ablak */
.aga-sty-ajto .aga-face { display: grid; place-items: center; transform: none !important; perspective: 320px; }
.aga-leaf { position: absolute; top: 0; bottom: 0; width: 50%; background: var(--tile); box-shadow: inset 0 0 0 3px rgba(0,0,0,.12), inset 0 0 0 6px rgba(255,255,255,.18); transition: transform .65s cubic-bezier(.4,.1,.2,1); }
.aga-leaf.aga-l { left: 0; border-radius: 10px 0 0 10px; transform-origin: left center; }
.aga-leaf.aga-r { right: 0; border-radius: 0 10px 10px 0; transform-origin: right center; }
.aga-leaf::after { content: ""; position: absolute; top: 50%; width: 6%; min-width: 3px; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.75); }
.aga-l::after { right: 9%; } .aga-r::after { left: 9%; }
.aga-sty-ajto .aga-num { color: var(--tink); background: var(--tile); padding: .08em .22em; border-radius: 8px; box-shadow: 0 0 0 2px rgba(255,255,255,.35); transition: opacity .3s; }
.aga-sty-ajto .aga-fico { position: absolute; top: 9%; left: 50%; width: 22%; height: 22%; transform: translateX(-50%); color: var(--tink); transition: opacity .3s; }
.aga-sty-ajto .is-open .aga-l { transform: rotateY(76deg); filter: brightness(.75); }
.aga-sty-ajto .is-open .aga-r { transform: rotateY(-76deg); filter: brightness(.75); }
.aga-sty-ajto .is-open .aga-num, .aga-sty-ajto .is-open .aga-fico { opacity: 0; }
.aga-sty-ajto .aga-face { box-shadow: 0 3px 0 rgba(0,0,0,.15); border-radius: 10px; }
.aga-sty-ajto .is-open .aga-face { box-shadow: none; pointer-events: none; }

/* Ajándékdoboz */
.aga-sty-doboz .aga-face { transform: none !important; overflow: visible; }
.aga-sty-doboz .aga-body { top: 22%; border-radius: 4px 4px 8px 8px; background: linear-gradient(90deg, transparent 42%, rgba(255,255,255,.55) 42%, rgba(255,255,255,.55) 58%, transparent 58%), var(--tile); transition: opacity .4s .25s, transform .5s .2s; }
.aga-sty-doboz .aga-body .aga-num { background: var(--tile); padding: 0 .12em; border-radius: 6px; font-size: 1.05em; }
.aga-lid { position: absolute; left: -5%; right: -5%; top: 8%; height: 18%; border-radius: 4px; background: linear-gradient(90deg, transparent 42%, rgba(255,255,255,.65) 42%, rgba(255,255,255,.65) 58%, transparent 58%), var(--tile); filter: brightness(1.08); box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .55s cubic-bezier(.3,.1,.3,1), opacity .5s .1s; z-index: 2; }
.aga-bow { position: absolute; left: 50%; bottom: 80%; width: 56%; transform: translateX(-50%); fill: #fff; opacity: .9; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.aga-sty-doboz .aga-in { top: 22%; border-radius: 4px 4px 8px 8px; }
.aga-sty-doboz .is-open .aga-lid { transform: translate(18%, -90%) rotate(24deg); opacity: 0; }
.aga-sty-doboz .is-open .aga-body { opacity: 0; transform: translateY(12%) scale(.92); pointer-events: none; }

/* Boríték */
.aga-sty-boritek .aga-face { transform: none !important; perspective: 240px; }
.aga-sty-boritek .aga-body { align-content: end; padding-bottom: 10%; background: linear-gradient(to top right, transparent 49.3%, rgba(0,0,0,.09) 50%, transparent 51%) left / 50% 100% no-repeat, linear-gradient(to top left, transparent 49.3%, rgba(0,0,0,.09) 50%, transparent 51%) right / 50% 100% no-repeat, var(--tile); transition: opacity .4s .3s, transform .5s .3s; }
.aga-sty-boritek .aga-body .aga-fico { display: none; }
.aga-flap { position: absolute; left: 0; right: 0; top: 0; height: 55%; background: var(--tile); filter: brightness(.9); clip-path: polygon(0 0, 100% 0, 50% 100%); border-radius: 10px 10px 0 0; transform-origin: top; transition: transform .45s; z-index: 3; }
.aga-flap::after { content: ""; position: absolute; left: 50%; bottom: 14%; width: 22%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: #c62f2f; box-shadow: inset 0 0 0 3px rgba(255,255,255,.25); }
.aga-sty-boritek .is-open .aga-flap { transform: rotateX(180deg); }
.aga-sty-boritek .is-open .aga-body { opacity: 0; transform: translateY(14%); pointer-events: none; }

/* Karácsonyfagömb – egyedi SVG-gömbök; kinyitás után befelé fordulnak, hátul arany alapon jelkép */
.aga-sty-gomb .aga-in { display: none; }
.aga-sty-gomb .aga-face { transform: none !important; overflow: visible; perspective: 420px; }
.aga-string { position: absolute; top: -8%; left: 50%; height: 10%; border-left: 1.5px solid rgba(90,70,30,.6); }
.aga-orb { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.4,.1,.2,1); }
.aga-oside { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; filter: drop-shadow(0 4px 5px rgba(0,0,0,.35)); }
.aga-oside svg { display: block; width: 100%; height: 100%; overflow: visible; }
.aga-oback { transform: rotateY(180deg); }
.aga-sty-gomb .is-open .aga-orb { transform: rotateY(180deg); }
.aga-sty-gomb .aga-w:not(.is-locked):not(.is-open):hover .aga-orb { transform: rotate(-6deg); }
.aga-onum { font: 700 33px Georgia, "Times New Roman", serif; fill: #fff; stroke: rgba(30,15,5,.55); stroke-width: 3.5px; paint-order: stroke; text-anchor: middle; dominant-baseline: middle; }
.aga-sty-gomb .aga-w { aspect-ratio: 100 / 124; }
.aga-sty-gomb .aga-w.is-today::after { border-radius: 50%; inset: 14% -4% -4%; }
.aga-sty-gomb .aga-w.is-ok .aga-oback::after { content: "★"; position: absolute; right: 2%; bottom: 4%; color: #fff6cf; font-size: 22cqi; text-shadow: 0 0 6px rgba(255,200,60,.9); }
.aga-sty-gomb .aga-w.is-locked .aga-face { filter: saturate(.85) brightness(.92); }
/* Csillogás: az új, már nyitható gömbökön végigfutó fény */
.aga-glint { opacity: 0; }
.aga-w.is-new .aga-glint { animation: aga-glint 3.2s ease-in-out infinite; }
@keyframes aga-glint { 0% { transform: translateX(0); opacity: .55; } 45%, 100% { transform: translateX(190px); opacity: .55; } }

/* Szikrák minden új (nyitható, még nem nyitott) ablakon */
.aga-spark { position: absolute; inset: -8%; pointer-events: none; z-index: 4; display: none; }
.aga-w.is-new .aga-spark { display: block; }
.aga-spark i { position: absolute; width: 16%; aspect-ratio: 1; background: #fff8d8; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); filter: drop-shadow(0 0 3px #ffd75a); animation: aga-twinkle 2.2s ease-in-out infinite; opacity: 0; }
.aga-spark i:nth-child(1) { top: 10%; left: 6%; }
.aga-spark i:nth-child(2) { top: 26%; right: 2%; animation-delay: .6s; width: 12%; }
.aga-spark i:nth-child(3) { bottom: 12%; left: 14%; animation-delay: 1.2s; width: 11%; }
.aga-spark i:nth-child(4) { bottom: 26%; right: 10%; animation-delay: 1.7s; }
@keyframes aga-twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }

/* ---------- Elrendezés: fenyőfa ---------- */
.aga-tree, .aga-pile { position: relative; max-width: 640px; margin: 0 auto; padding-top: clamp(30px, 9cqi, 60px); }
.aga-tree .aga-w, .aga-pile .aga-w { width: min(78px, calc((92cqi - (var(--cols) - 1) * var(--g)) / var(--cols))); }
@container (max-width: 480px) { .aga-tree .aga-w { width: calc((99cqi - (var(--cols) - 1) * 3px) / var(--cols)); } .aga-tree .aga-row, .aga-tree .aga-rows { gap: 3px; } }
.aga-rows { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--g); padding: 4% 0 6%; }
.aga-row { display: flex; gap: var(--g); justify-content: center; align-items: flex-end; }
.aga-treebg { position: absolute; left: -2%; right: -2%; top: clamp(18px, 6cqi, 40px); width: 104%; height: calc(100% - clamp(18px, 6cqi, 40px) - var(--trunkh, 0px)); z-index: 0; overflow: visible; }
.aga-tree .aga-rows { z-index: 1; }
.aga-tr1 { fill: var(--tree); } .aga-tr2 { fill: var(--tree2); opacity: .55; }
.aga-garland { fill: none; stroke: var(--accent); stroke-width: .7; stroke-dasharray: 1.4 1.6; stroke-linecap: round; opacity: .85; vector-effect: non-scaling-stroke; stroke-width: 3px; }
.aga-topstar { position: absolute; z-index: 2; top: 0; left: 50%; width: clamp(40px, 11cqi, 70px); transform: translateX(-50%); fill: var(--accent); color: var(--accent); filter: drop-shadow(0 0 10px rgba(255,200,60,.7)); }
.aga-topstar path { fill: var(--accent); }
.aga-tree { --trunkh: calc(min(78px, calc((92cqi - (var(--cols) - 1) * var(--g)) / var(--cols))) * 1.6); }
.aga-trunk { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; margin-top: -2%; }
.aga-stem { display: block; width: 11%; height: 22px; background: repeating-linear-gradient(90deg, rgba(0,0,0,.18) 0 2px, transparent 2px 6px), linear-gradient(90deg, #3d2615, #7a4f2c 45%, #3d2615); }
.aga-pot { padding: 8px 12px 10px; border-radius: 6px 6px 16px 16px; background: linear-gradient(#b8522f, #8c3b20); box-shadow: 0 6px 14px rgba(0,0,0,.2); }
.aga-tree .aga-pot .aga-w.aga-big { width: min(92px, calc((92cqi - (var(--cols) - 1) * var(--g)) / var(--cols) * 1.25)); }

/* ---------- Elrendezés: ajándékhalom ---------- */
.aga-pile .aga-rows { gap: 3px; padding-bottom: 0; }
.aga-pile .aga-row { gap: 3px; }
.aga-ground { height: 22px; margin: 0 auto; width: 96%; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(0,0,0,.18), transparent 70%); }
.aga-lay-ajandek.aga-sty-doboz .aga-w { aspect-ratio: 1 / calc(var(--h, 1) * 1.1); }

/* ---------- Elrendezés: mozaik ---------- */
.aga-mozaik { --mc: 4; --cell: calc((100cqi - (var(--mc) - 1) * var(--g)) / var(--mc)); display: grid; grid-template-columns: repeat(var(--mc), 1fr); grid-auto-rows: var(--cell); grid-auto-flow: dense; gap: var(--g); max-width: 980px; margin: 0 auto; }
@container (min-width: 560px) { .aga-mozaik { --mc: 6; } }
@container (min-width: 860px) { .aga-mozaik { --mc: 8; } }
.aga-mozaik .aga-w { aspect-ratio: auto !important; width: 100%; height: 100%; }
.aga-mozaik .aga-wide { grid-column: span 2; }
.aga-mozaik .aga-tall { grid-row: span 2; }
.aga-mozaik .aga-w .aga-face, .aga-mozaik .aga-w .aga-inum { font-size: min(36cqi, 40cqh); }
.aga-mozaik .aga-w { container-type: size; }
.aga-mozaik .aga-wide .aga-face { font-size: 30cqh; }
.aga-filler { display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; border: 2px dashed color-mix(in srgb, var(--ink) 25%, transparent); color: var(--muted); font: italic 700 clamp(13px, 3.4cqi, 20px)/1.2 Georgia, serif; text-align: center; padding: 6px; }
.aga-filler .aga-ico { width: 1.3em; height: 1.3em; color: var(--accent); flex: 0 0 auto; }

/* ---------- Elrendezés: klasszikus rács ---------- */
.aga-racs { display: grid; grid-template-columns: repeat(var(--cm), 1fr); gap: var(--g); max-width: 760px; margin: 0 auto; }
@container (min-width: 560px) { .aga-racs { grid-template-columns: repeat(var(--c), 1fr); } }

/* ---------- Elrendezés: téli falu ---------- */
.aga-falu { position: relative; margin: 0 -2px; border-radius: 14px; overflow: hidden; background: linear-gradient(var(--sky1), var(--sky2)); padding: clamp(50px, 12cqi, 90px) 3% 0; }
.aga-moon { position: absolute; top: 14px; right: 8%; width: clamp(34px, 8cqi, 60px); aspect-ratio: 1; border-radius: 50%; background: #fff6d0; box-shadow: 0 0 30px 8px rgba(255,240,180,.35); }
.aga-moon::after { content: ""; position: absolute; inset: -4% -4% 0 26%; border-radius: 50%; background: var(--sky1); }
.aga-stars { position: absolute; inset: 0 0 50% 0; background-image: radial-gradient(1.5px 1.5px at 10% 20%, #fff, transparent), radial-gradient(1px 1px at 25% 45%, #fff, transparent), radial-gradient(1.5px 1.5px at 40% 12%, #fff, transparent), radial-gradient(1px 1px at 55% 35%, #fff, transparent), radial-gradient(1.5px 1.5px at 70% 18%, #fff, transparent), radial-gradient(1px 1px at 85% 50%, #fff, transparent), radial-gradient(1px 1px at 5% 60%, #fff, transparent), radial-gradient(1.5px 1.5px at 62% 60%, #fff, transparent); opacity: .8; }
.aga-street { --fw: clamp(38px, 12.5cqi, 66px); position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: clamp(10px, 3cqi, 22px) clamp(6px, 2cqi, 16px); }
.aga-house { position: relative; display: flex; flex-direction: column; align-items: center; filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); }
.aga-roof { position: relative; display: block; width: 112%; aspect-ratio: 2.4 / 1; background: var(--roof, #7a2c25); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.aga-roof::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: #fff; clip-path: polygon(0 100%, 8% 0, 92% 0, 100% 100%); opacity: .9; }
.aga-chimney { position: absolute; right: 22%; top: 18%; width: 9%; height: 40%; background: #5b3a2a; clip-path: none; }
.aga-hbody { position: relative; display: grid; grid-template-columns: repeat(var(--hcol, 2), var(--fw)); gap: calc(var(--fw) * .18); padding: calc(var(--fw) * .2) calc(var(--fw) * .2) calc(var(--fw) * .9); background: var(--wall, #e9d6b0); border-radius: 0 0 4px 4px; }
.aga-hs3 .aga-hbody { --hcol: 3; } .aga-hs1 .aga-hbody { --hcol: 1; }
.aga-door { position: absolute; bottom: 0; left: 50%; width: calc(var(--fw) * .5); height: calc(var(--fw) * .75); transform: translateX(-50%); background: #6b3f26; border-radius: 40% 40% 0 0 / 30% 30% 0 0; }
.aga-hc1 { --wall: #f1dfbd; --roof: #9b2f27; } .aga-hc2 { --wall: #cfe0d4; --roof: #2f5d4a; } .aga-hc3 { --wall: #f5c9b6; --roof: #6b3f2a; }
.aga-hc4 { --wall: #d9d4ea; --roof: #3e4a7a; } .aga-hc5 { --wall: #f3e7a9; --roof: #a0482b; }
.aga-falu .aga-w { width: var(--fw); }
.aga-falu .aga-in { background: radial-gradient(circle at 50% 50%, #fff4c2, #ffd36b 70%, #f0b13d); box-shadow: 0 0 14px 2px rgba(255,200,80,.65), inset 0 0 6px rgba(160,90,0,.4); }
.aga-falu .aga-w .aga-face, .aga-falu .aga-w .aga-in { border-radius: 4px; }
.aga-falu .aga-leaf.aga-l { border-radius: 4px 0 0 4px; } .aga-falu .aga-leaf.aga-r { border-radius: 0 4px 4px 0; }
.aga-snowground { position: relative; z-index: 2; height: 34px; margin: -6px -4% 0; background: #fbfdff; border-radius: 60% 60% 0 0 / 100% 100% 0 0; box-shadow: 0 -4px 10px rgba(255,255,255,.4); }

/* ---------- Kérdés ablak (modal) ---------- */
html.aga-lock { overflow: hidden; }
.aga-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15,15,25,.55); opacity: 0; transition: opacity .25s; color: #2b2b2b; font-size: 17px; line-height: 1.45; }
.aga-modal.is-in { opacity: 1; }
.aga-sheet { position: relative; width: min(640px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; background: var(--paper); border-radius: 20px; padding: 22px clamp(16px, 4vw, 30px) 24px; box-shadow: 0 20px 60px rgba(0,0,0,.35); transform: translateY(20px) scale(.97); transition: transform .3s cubic-bezier(.3,1.3,.5,1); }
.aga-pal-ejkek .aga-sheet { color: #1a2440; }
.aga-modal.is-in .aga-sheet { transform: none; }
.aga-x { position: absolute; top: 8px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0,0,0,.06); color: #333; font-size: 28px; line-height: 1; cursor: pointer; }
.aga-x:hover { background: rgba(0,0,0,.12); }
.aga-mhead { display: flex; align-items: center; gap: 8px; color: var(--c1); font: 700 15px/1 system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.aga-pal-skandinav .aga-mhead, .aga-pal-ejkek .aga-mhead { color: var(--accent); }
.aga-mhead .aga-ico { width: 20px; height: 20px; color: var(--accent); }
.aga-q { margin: 0 44px 16px 0; font: 700 clamp(19px, 4.6vw, 24px)/1.3 Georgia, "Times New Roman", serif; color: inherit; }
.aga-ans { display: grid; gap: 10px; }
.aga-a { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 10px 14px; border: 2px solid rgba(0,0,0,.12); border-radius: 14px; background: #fff; color: #2b2b2b; text-align: left; font: inherit; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.aga-a:not(:disabled):hover { border-color: var(--accent); background: #fffaf0; }
.aga-a:not(:disabled):active { transform: scale(.98); }
.aga-a:disabled { cursor: default; }
.aga-letter { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.07); font-weight: 700; }
.aga-a.is-right { border-color: var(--ok); background: #e7f6ec; }
.aga-a.is-right .aga-letter { background: var(--ok); color: #fff; }
.aga-a.is-wrong { border-color: var(--bad); background: #fbe9e7; opacity: .75; }
.aga-a.is-wrong .aga-letter { background: var(--bad); color: #fff; }
.aga-msg { min-height: 1.4em; margin: 14px 0 0; font-weight: 700; text-align: center; }
.aga-msg.is-good { color: var(--ok); font-size: 1.25em; }
.aga-msg.is-bad { color: var(--bad); }
.aga-reward { margin-top: 12px; }
.aga-note { text-align: center; font-style: italic; margin: 0 0 10px; }
.aga-video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #111; }
.aga-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.aga-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 0; background: radial-gradient(circle, #3a3a4a, #15151d); color: #fff; font: 600 17px/1.2 system-ui, sans-serif; cursor: pointer; }
.aga-playico { display: grid; place-items: center; width: 68px; height: 48px; border-radius: 14px; background: #e62117; font-size: 22px; }
.aga-ytlink { display: block; margin-top: 8px; text-align: center; font-size: 14px; color: #555; }
.aga-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }

/* Mobil: a kérdés alulról felcsúszó lapként */
@media (max-width: 560px) {
  .aga-modal { align-items: flex-end; padding: 0; }
  .aga-sheet { width: 100%; border-radius: 20px 20px 0 0; max-height: 94vh; max-height: 94dvh; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .aga-stage { border-radius: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .aga-root *, .aga-modal * { transition-duration: .01s !important; animation: none !important; }
}


/* ---------- Elrendezés: fiókos szekrény (rétegelt falemez) ---------- */
.aga-cabinet { --ply: #ecd9b4; --plyd: #d6bd8f; --burn: #8a6340; max-width: 920px; margin: 0 auto; }
.aga-cab-top { display: block; width: 100%; height: auto; margin-bottom: -6px; position: relative; z-index: 1; }
.aga-cab-top .aga-lit { fill: #ffd27a; filter: url(#aga-glow); animation: aga-flicker 4s ease-in-out infinite; }
.aga-cab-top .aga-lit:nth-of-type(3n) { animation-delay: 1.3s; }
@keyframes aga-flicker { 0%, 100% { opacity: 1; } 50% { opacity: .82; } }
.aga-cab-body { display: flex; gap: clamp(6px, 1.4cqi, 14px); padding: clamp(8px, 1.6cqi, 16px); border: 2px solid var(--burn); border-radius: 6px; background: repeating-linear-gradient(90deg, rgba(140,100,50,.07) 0 2px, transparent 2px 11px), linear-gradient(var(--ply), var(--plyd)); box-shadow: 0 10px 24px rgba(60,35,10,.25), inset 0 0 0 4px rgba(255,255,255,.25); }
.aga-cab-side { flex: 0 0 9%; display: none; border: 1.5px solid var(--burn); border-radius: 4px; background: rgba(255,255,255,.18); }
.aga-cab-flakes { width: 100%; height: 100%; }
@container (min-width: 600px) { .aga-cab-side { display: block; } }
.aga-drawers { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(5px, 1cqi, 9px); min-width: 0; }
@container (min-width: 600px) { .aga-drawers { grid-template-columns: repeat(8, 1fr); } }
.aga-cab-base { height: 16px; margin: 0 1.5%; border: 2px solid var(--burn); border-top: 0; border-radius: 0 0 8px 8px; background: linear-gradient(var(--plyd), #b99866); }

/* Ablakstílus: kihúzható fiók */
.aga-sty-fiok .aga-w { aspect-ratio: 1 / .95; }
.aga-sty-fiok .aga-in { border-radius: 3px; background: linear-gradient(#2c1b0e, #563820); box-shadow: inset 0 5px 10px rgba(0,0,0,.7); }
.aga-sty-fiok .aga-in > * { display: none; }
.aga-sty-fiok .aga-face { transform: none !important; overflow: visible; }
.aga-front { position: absolute; inset: 0; z-index: 2; display: grid; justify-items: center; align-content: start; padding-top: calc(10% * var(--u, 1)); border: 1.5px solid #9b7148; border-radius: 3px; background: repeating-linear-gradient(90deg, rgba(150,110,60,.07) 0 2px, transparent 2px 9px), linear-gradient(#f6e8cc, #ead5ae); box-shadow: inset 0 0 0 3px rgba(255,255,255,.35), 0 2px 3px rgba(0,0,0,.18); transition: transform .6s cubic-bezier(.3,1.2,.4,1), box-shadow .6s; }
.aga-front .aga-num { color: #8b6440; font-weight: 400; text-shadow: 0 1px 0 rgba(255,255,255,.7); font-size: calc(34cqi * var(--u, 1)); }
.aga-knob { position: absolute; left: 50%; bottom: 14%; width: calc(19% * var(--u, 1)); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff4dc, #d9bb8c 60%, #a37d52); box-shadow: 0 2px 2px rgba(0,0,0,.35); }
.aga-tray { position: absolute; z-index: 1; left: 4%; right: 4%; top: 0; height: 30%; display: grid; place-items: center; clip-path: polygon(9% 0, 91% 0, 100% 100%, 0 100%); background: linear-gradient(#b08a5b, #e6cfa6); color: #5e3f22; opacity: 0; transform: scaleY(.1); transform-origin: bottom; transition: opacity .3s .15s, transform .5s .1s; }
.aga-tray .aga-sym { height: 92%; width: auto; stroke-width: 1.4; }
.aga-sty-fiok .is-open .aga-front { transform: translateY(30%) scale(1.05); box-shadow: inset 0 0 0 3px rgba(255,255,255,.35), 0 10px 14px rgba(40,20,5,.4); }
.aga-sty-fiok .is-open .aga-tray { opacity: 1; transform: none; }
.aga-sty-fiok .aga-w:not(.is-locked):not(.is-open):hover .aga-front { transform: translateY(5%); }
.aga-sty-fiok .aga-w.is-ok .aga-front::after { content: "★"; position: absolute; top: 4%; right: 6%; color: #d9a52b; font-size: calc(20cqi * var(--u, 1)); }
.aga-sty-fiok .aga-w.is-today::after { border-radius: 5px; inset: -4px; }
.aga-sty-fiok .aga-w.is-locked .aga-face { filter: none; }

.aga-cab-img { width: 100%; height: auto; margin-bottom: -2px; }
.aga-cab-noimg .aga-cab-top { margin-bottom: -3px; }
.aga-cab-ledge { position: relative; z-index: 2; height: 14px; margin: 0 -1%; border: 2px solid var(--burn); border-radius: 3px; background: linear-gradient(#f3e5c6, #d9bf8e); box-shadow: 0 3px 6px rgba(60,35,10,.25); }
.aga-cab-side { background: linear-gradient(90deg, rgba(120,85,45,.18), rgba(255,255,255,.2)); }
.aga-cab-side:last-child { background: linear-gradient(270deg, rgba(120,85,45,.18), rgba(255,255,255,.2)); }

/* ---------- Adventi gyertyagyújtás ---------- */
.aga-cbadge { position: absolute; z-index: 5; top: -24%; left: 3%; width: 30%; min-width: 16px; max-width: 34px; pointer-events: none; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.aga-cbadge svg { display: block; width: 100%; height: auto; overflow: visible; }
.aga-fl { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; transition: opacity .25s; }
.aga-w.is-lit .aga-cbadge .aga-fl, .aga-w.is-open .aga-cbadge .aga-fl { opacity: 1; animation: aga-flick 1.3s ease-in-out infinite; }
.aga-w.is-lit .aga-cbadge, .aga-w.is-open .aga-cbadge { filter: drop-shadow(0 0 6px rgba(255,190,70,.9)); }
@keyframes aga-flick { 0%, 100% { transform: scale(1, 1) rotate(0); } 25% { transform: scale(.95, 1.08) rotate(-2deg); } 50% { transform: scale(1.04, .94) rotate(1.5deg); } 75% { transform: scale(.97, 1.05) rotate(-1deg); } }
.aga-w.is-burst { animation: aga-burst 1.6s ease-out; }
@keyframes aga-burst { 0% { box-shadow: 0 0 0 0 rgba(255,196,80,0); } 30% { box-shadow: 0 0 34px 16px rgba(255,196,80,.85); } 100% { box-shadow: 0 0 0 0 rgba(255,196,80,0); } }
.aga-sty-fiok .aga-w.is-gyertya .aga-front { box-shadow: inset 0 0 0 3px rgba(255,255,255,.35), inset 0 0 0 5px rgba(160,71,47,.25), 0 2px 3px rgba(0,0,0,.18); }

/* koszorú a kérdés ablak tetején */
.aga-advent { text-align: center; margin: -4px 0 12px; }
.aga-wreath { display: block; width: min(320px, 86%); height: auto; margin: 0 auto; overflow: visible; }
.aga-wreath .aga-fl.is-lit { opacity: 1; animation: aga-flick 1.4s ease-in-out infinite; }
.aga-wreath .aga-fl.is-ignite { animation: aga-ignite 1.1s .9s cubic-bezier(.2,1.6,.4,1) both, aga-flick 1.4s 2s ease-in-out infinite; }
@keyframes aga-ignite { 0% { opacity: 0; transform: scale(.05); } 40% { opacity: 1; transform: scale(1.5, 1.7); } 100% { opacity: 1; transform: scale(1); } }
.aga-wburst { opacity: 0; transform-box: fill-box; transform-origin: center; animation: aga-wburst 1.8s .95s ease-out both; }
@keyframes aga-wburst { 0% { opacity: 0; transform: scale(.2); } 35% { opacity: 1; transform: scale(1.1); } 100% { opacity: .35; transform: scale(1); } }
.aga-advent-t { margin: 4px 0 0; font: 700 13px/1.2 system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #8a3f8f; }
.aga-advent-s { margin: 4px 0 0; font: italic 600 16px/1.35 Georgia, serif; color: #5a3d1e; }
.aga-sheet.is-candle { background: radial-gradient(ellipse at 50% 0, #fff3d2, var(--paper) 55%); }
.aga-sheet.is-candle::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 60px rgba(255,190,80,.35); animation: aga-breathe2 3s ease-in-out infinite; }
@keyframes aga-breathe2 { 50% { opacity: .5; } }

/* két eltérő oldallap */
.aga-cab-l { background: linear-gradient(90deg, rgba(120,85,45,.2), rgba(255,255,255,.18)); }
.aga-cab-r { background: linear-gradient(270deg, rgba(120,85,45,.2), rgba(255,255,255,.18)); }

/* szekrény teteje: kisebb kép, közepén adventi koszorú */
.aga-cab-scene { position: relative; width: 80%; margin: 0 auto; }
.aga-cab-scene .aga-cab-img { display: block; width: 100%; }
.aga-cab-wreath { position: absolute; z-index: 3; left: 50%; top: 52%; width: 27%; transform: translate(-50%, -50%); filter: drop-shadow(0 4px 6px rgba(40,20,5,.35)); pointer-events: auto; }
.aga-cab-wreath .aga-wreath { width: 100%; }
@media (max-width: 560px) { .aga-cab-scene { width: 96%; } .aga-cab-wreath { width: 40%; top: 50%; } }

/* koszorú a lámpaoszlop körül: a teljes képet fedő SVG, a kép koordinátáiban */
.aga-cab-wreath.is-lamp { left: 0; top: 0; width: 100%; height: 100%; transform: none; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(40,20,5,.3)); }
.aga-wreath-scene { display: block; width: 100%; height: 100%; overflow: visible; }
.aga-wreath-scene .aga-fl.is-lit { opacity: 1; animation: aga-flick 1.4s ease-in-out infinite; }
.aga-wreath-scene .aga-fl.is-ignite { animation: aga-ignite 1.1s .9s cubic-bezier(.2,1.6,.4,1) both, aga-flick 1.4s 2s ease-in-out infinite; }
@media (max-width: 560px) { .aga-cab-wreath.is-lamp { width: 100%; top: 0; } }
