/*
   ZVEDKO - herný prehrávač (papierový koláž)
   Veľké dotykové ciele pre interaktívnu tabuľu, nízkopodnetový režim .is-calm
 */
.page-play { background: var(--c-sky); padding: 0 !important; overflow: hidden; height: 100dvh; }
.zg { position: relative; display: flex; flex-direction: column; height: 100dvh; isolation: isolate; overflow: hidden; overflow: clip; background: var(--c-sky); color: var(--c-ink); }
.zg-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(1.05); }
.zg[data-bg]::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(244, 246, 253, .55), rgba(244, 246, 253, .78)); }
.zg-noscript { padding: 40px; text-align: center; font-weight: 700; }

/* Horná lišta */
.zg-bar { display: flex; align-items: center; gap: 12px; padding: 10px clamp(10px, 2vw, 22px); padding-top: max(10px, env(safe-area-inset-top)); background: rgba(255, 255, 255, .86); backdrop-filter: blur(8px); border-bottom: 2px solid var(--c-ink); z-index: 5; }
.zg-brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: var(--c-ink); font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; }
.zg-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zg-brand img { flex: none; transform: rotate(-6deg); }
.zg-progress { flex: 1; min-width: 80px; max-width: 420px; height: 16px; margin-left: auto; border-radius: 99px; background: #fff; border: 2px solid var(--c-ink); overflow: hidden; }
.zg-progress span { display: block; height: 100%; width: 0; background: repeating-linear-gradient(-45deg, var(--c-yellow) 0 12px, #FFD766 12px 24px); border-right: 2px solid var(--c-ink); transition: width .5s var(--ease); }
.zg-tools { display: flex; gap: 8px; }
.zg-iconbtn { position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; border: 2px solid var(--c-ink); background: #fff; color: var(--c-ink); cursor: pointer; box-shadow: 2px 2px 0 var(--c-ink); text-decoration: none; transition: transform .15s, background-color .15s; }
.zg-iconbtn:hover { transform: translate(-1px, -1px); color: var(--c-ink); }
.zg-iconbtn:active { transform: translate(1px, 1px); box-shadow: none; }
.zg-iconbtn .icon { width: 24px; height: 24px; }
.zg-iconbtn[aria-pressed="true"] { background: var(--c-yellow); }
.zg-iconbtn[data-zg-sound][aria-pressed="false"]::after, .zg-iconbtn[data-zg-voice][aria-pressed="false"]::after { content: ""; position: absolute; left: 9px; right: 9px; top: 50%; height: 2.5px; background: var(--c-coral-strong); transform: rotate(-40deg); border-radius: 2px; }
.zg-iconbtn__tag { position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%); font-size: .62rem; font-weight: 800; background: var(--c-ink); color: #fff; padding: 0 5px; border-radius: 6px; line-height: 1.4; }

/* Plocha */
.zg-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: clamp(12px, 2.5vw, 32px); overflow: auto; }
.zg-play { width: 100%; max-width: 1200px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(12px, 2.4vh, 28px); }

/* Štart a koniec */
.zg-start, .zg-end { display: flex; align-items: center; gap: clamp(20px, 4vw, 56px); max-width: 980px; width: 100%; background: #fff; border: 2px solid var(--c-ink); border-radius: 32px; box-shadow: 6px 6px 0 var(--c-ink); padding: clamp(22px, 4vw, 48px); animation: zg-pop .45s var(--ease) both; }
.zg-start__owl { width: clamp(140px, 22vw, 260px); flex: none; animation: zg-bob 3s ease-in-out infinite; }
.zg-start__cat { margin: 0 0 6px; font-weight: 800; color: var(--c-green); text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; }
.zg-start__title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); line-height: 1.05; margin-bottom: 12px; }
.zg-start__intro { font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem); color: var(--c-text-soft); max-width: 40ch; }
.zg-levels { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 22px; }
.zg-level { min-height: 48px; padding: 0 18px; border-radius: 99px; border: 2px solid var(--c-ink); background: #fff; font: inherit; font-weight: 800; cursor: pointer; color: var(--c-ink); }
.zg-level.is-active { background: var(--c-green); color: #fff; box-shadow: 2px 2px 0 var(--c-ink); }
.zg-go { min-height: 64px; padding: 0 40px; font-size: 1.35rem; }
.zg-end { flex-direction: column; text-align: center; gap: 10px; max-width: 640px; }
.zg-end__owl { width: clamp(150px, 22vw, 230px); animation: zg-jump 1s var(--ease) 2; }
.zg-end__title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); margin: 4px 0 14px; }
.zg-end__actions { justify-content: center; }
.zg-stars { display: flex; gap: 10px; }
.zg-star { font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; color: #E2E7F5; -webkit-text-stroke: 2px var(--c-ink); }
.zg-star.is-on { color: var(--c-yellow); animation: zg-star .5s var(--ease) both; }
.zg-star.is-on:nth-child(2) { animation-delay: .15s; }
.zg-star.is-on:nth-child(3) { animation-delay: .3s; }

/* Sovička s bublinou */
.zg-owl { position: absolute; right: clamp(8px, 2vw, 24px); bottom: clamp(8px, 2vh, 20px); width: clamp(70px, 9vw, 120px); z-index: 4; pointer-events: none; transform: translateY(130%); transition: transform .4s var(--ease); }
.is-playing .zg-owl { transform: translateY(45%); }
.zg-owl.is-talking { transform: translateY(0) !important; }
.zg-owl.is-happy img { animation: zg-jump .6s var(--ease); }
.zg-owl.is-think img { animation: zg-tilt .6s var(--ease); }
.zg-owl__bubble { position: absolute; right: 85%; bottom: 70%; white-space: nowrap; background: #fff; border: 2px solid var(--c-ink); border-radius: 18px 18px 4px 18px; padding: 8px 14px; font-weight: 800; font-size: 1.05rem; box-shadow: 3px 3px 0 var(--c-ink); opacity: 0; transform: scale(.8); transform-origin: bottom right; transition: opacity .2s, transform .2s; }
.zg-owl.is-talking .zg-owl__bubble { opacity: 1; transform: none; }

/* Spoločné prvky hry */
.zg-prompt { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2.3rem); text-align: center; margin: 0; background: #fff; border: 2px solid var(--c-ink); border-radius: 18px; padding: 8px 22px; box-shadow: 3px 3px 0 var(--c-ink); }
.zg-prompt--sm { font-size: 1.1rem; padding: 8px 14px; }
.zg-token { position: relative; display: grid; place-items: center; width: clamp(84px, 10vw, 130px); aspect-ratio: 1; background: #fff; border: 2px solid var(--c-ink); border-radius: 20px; box-shadow: 3px 3px 0 var(--c-ink); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; transition: box-shadow .15s; }
.zg-token img { width: 84%; height: 84%; object-fit: contain; pointer-events: none; }
.zg-token--big { width: clamp(150px, 20vw, 240px); border-radius: 28px; }
.zg-token--card { width: clamp(110px, 14vw, 190px); }
.zg-draggable:focus-visible { outline: 4px solid var(--c-green); outline-offset: 3px; }
.zg-token.is-dragging, .zg-piece.is-dragging { z-index: 50; cursor: grabbing; box-shadow: 8px 10px 0 rgba(27, 42, 74, .35); }
.zg-token.is-selected, .zg-piece.is-selected { outline: 4px solid var(--c-yellow); outline-offset: 3px; transform: translateY(-6px) scale(1.04); }
.is-wrong { animation: zg-shake .4s; }
.zg-target.is-over, .has-selection .zg-target:hover { box-shadow: 0 0 0 5px var(--c-yellow), 4px 4px 0 var(--c-ink); }
.zg-tray { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(10px, 1.6vw, 18px); max-width: 1000px; }
.zg-tray .zg-token { animation: zg-pop .4s var(--ease) both; }
.zg-tray .zg-token:nth-child(2n) { animation-delay: .05s; }
.zg-tray .zg-token:nth-child(3n) { animation-delay: .1s; }

/* Pexeso */
.zg-memory { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 16px); width: min(100%, calc((100dvh - 190px) * var(--cols) / var(--rows)), 1000px); }
.zg-card { aspect-ratio: 1; perspective: 900px; border: 0; padding: 0; background: none; cursor: pointer; }
.zg-card__inner { position: relative; display: block; width: 100%; height: 100%; transition: transform .45s var(--ease); transform-style: preserve-3d; }
.zg-card.is-open .zg-card__inner, .zg-card.is-matched .zg-card__inner { transform: rotateY(180deg); }
.zg-card__back, .zg-card__front { position: absolute; inset: 0; border-radius: 18px; border: 2px solid var(--c-ink); box-shadow: 3px 3px 0 var(--c-ink); backface-visibility: hidden; display: grid; place-items: center; }
.zg-card__back { background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .25) 0 8px, transparent 9px) 0 0 / 34px 34px, var(--c-green); }
.zg-card__back::after { content: ""; width: 46%; aspect-ratio: 1; background: url("../img/brand/logo.svg") center / contain no-repeat; filter: drop-shadow(2px 2px 0 rgba(27, 42, 74, .4)); transform: rotate(-8deg); }
.zg-card__front { background: #fff; transform: rotateY(180deg); }
.zg-card__front img { width: 82%; height: 82%; object-fit: contain; }
.zg-card.is-matched .zg-card__front { background: #E8F8F0; border-color: #1D6B4F; animation: zg-glow .6s var(--ease); }
.zg-card:hover:not(.is-open):not(.is-matched) .zg-card__inner { transform: translateY(-3px) rotate(-1deg); }
.zg-card:focus-visible { outline: 4px solid var(--c-yellow); outline-offset: 3px; border-radius: 18px; }

/* Triedenie */
.zg-play--sort { justify-content: space-between; }
.zg-bins { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: clamp(10px, 2vw, 24px); width: 100%; max-width: 1000px; }
.zg-bin { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; min-height: clamp(130px, 22vh, 210px); padding: 14px 10px 12px; border-radius: 24px 24px 34px 34px; background: linear-gradient(180deg, #fff 0 18%, color-mix(in srgb, var(--bin) 22%, #fff) 18%); border: 2px solid var(--c-ink); box-shadow: 4px 4px 0 var(--c-ink); cursor: pointer; transition: transform .2s; }
.zg-bin::before { content: ""; position: absolute; left: -6px; right: -6px; top: 14%; height: 12px; border-radius: 8px; background: var(--bin); border: 2px solid var(--c-ink); }
.zg-bin__img { width: clamp(60px, 8vw, 96px); }
.zg-bin__swatch { width: clamp(54px, 7vw, 80px); aspect-ratio: 1; border-radius: 50%; background: var(--bin); border: 3px solid var(--c-ink); box-shadow: inset -6px -6px 0 rgba(0, 0, 0, .12); }
.zg-bin__label { font-family: var(--f-display); font-weight: 700; font-size: clamp(1rem, .9rem + .5vw, 1.35rem); text-align: center; line-height: 1.1; }
.zg-bin__count { position: absolute; top: -12px; right: -10px; min-width: 34px; height: 34px; border-radius: 99px; display: grid; place-items: center; background: var(--c-yellow); border: 2px solid var(--c-ink); font-weight: 800; }
.zg-bin.is-yes { animation: zg-gulp .45s var(--ease); }
.zg-bin.is-nope { animation: zg-shake .4s; }

/* Tieň */
.zg-play--shadow { flex-direction: row; gap: clamp(20px, 5vw, 80px); }
.zg-shadow__src { display: grid; place-items: center; min-width: 30%; transition: opacity .3s; }
.zg-shadow__src.is-empty { opacity: 0; }
.zg-shadow__opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.zg-shadow__opts[style*="--n: 3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.zg-shadow__slot { position: relative; display: grid; place-items: center; width: clamp(120px, 15vw, 200px); aspect-ratio: 1; border-radius: 26px; background: rgba(255, 255, 255, .85); border: 2px dashed var(--c-ink); cursor: pointer; transition: transform .2s, background-color .3s; }
.zg-shadow__slot img { width: 82%; height: 82%; object-fit: contain; pointer-events: none; }
.zg-shadow__slot:hover { transform: translateY(-3px); }
.zg-shadow__slot.is-nope { animation: zg-shake .4s; }
.zg-shadow__slot.is-solved { border-style: solid; background: #E8F8F0; box-shadow: 4px 4px 0 var(--c-ink); }
.zg-shadow__fill { position: absolute; inset: 9%; width: 82% !important; height: 82% !important; animation: zg-reveal .5s var(--ease) both; }

/* Puzzle */
.zg-puzzle { display: flex; flex-direction: column; align-items: center; gap: clamp(12px, 2vh, 22px); width: 100%; height: 100%; justify-content: center; }
.zg-puzzle__board { --w: min(92vw, calc((100dvh - 330px) * var(--ratio)), 900px); position: relative; display: grid; grid-template-columns: repeat(var(--cols), 1fr); grid-template-rows: repeat(var(--rows), 1fr); width: var(--w); aspect-ratio: var(--ratio); background: rgba(255, 255, 255, .7); border: 2px solid var(--c-ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--c-ink); overflow: hidden; }
.zg-puzzle__board.has-ghost::before { content: ""; position: absolute; inset: 0; background: var(--img) center / 100% 100%; opacity: .28; filter: grayscale(.4); }
.zg-puzzle__slot { position: relative; border: 1.5px dashed rgba(27, 42, 74, .35); }
.zg-puzzle__slot.is-filled { border-color: transparent; }
.zg-puzzle__board.is-complete .zg-puzzle__slot { border: 0; }
.zg-puzzle__board.is-complete { animation: zg-glow .8s var(--ease); }
.zg-puzzle__tray { --w: min(92vw, calc((100dvh - 330px) * var(--ratio)), 900px); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 100%; min-height: 60px; }
.zg-piece { width: calc(var(--w) / var(--cols) * .62); aspect-ratio: calc(var(--ratio) * var(--rows) / var(--cols)); border: 2px solid var(--c-ink); border-radius: 10px; box-shadow: 3px 3px 0 var(--c-ink); transform: rotate(var(--tilt)); cursor: grab; touch-action: none; }
.zg-puzzle__slot .zg-piece { position: absolute; inset: 0; width: 100%; height: 100%; transform: none; border: 0; border-radius: 0; box-shadow: none; animation: zg-snap .3s var(--ease); }

/* Poradie */
.zg-seq__slots { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: clamp(8px, 1.5vw, 18px); width: 100%; max-width: 1100px; }
.zg-seq__slot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; aspect-ratio: .82; padding: 10px; border-radius: 22px; border: 2px dashed var(--c-ink); background: rgba(255, 255, 255, .75); }
.zg-seq__slot.is-filled { border-style: solid; background: #fff; box-shadow: 3px 3px 0 var(--c-ink); }
.zg-seq__num { position: absolute; top: -14px; left: -10px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--c-coral); color: #fff; border: 2px solid var(--c-ink); font-weight: 800; z-index: 2; }
.zg-seq__slot .zg-token { width: 100%; box-shadow: none; border: 0; animation: zg-snap .3s var(--ease); }
.zg-seq__label { font-weight: 700; font-size: clamp(.85rem, .75rem + .3vw, 1rem); text-align: center; line-height: 1.2; }
.zg-seq__tray .zg-token--card { width: clamp(100px, 13vw, 170px); }

/* Osemsmerovka */
.zg-ws { display: flex; gap: clamp(16px, 3vw, 40px); align-items: center; justify-content: center; width: 100%; height: 100%; }
.zg-ws__grid { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 4px; width: min(92vw, calc(100dvh - 160px), 640px); padding: 10px; background: #fff; border: 2px solid var(--c-ink); border-radius: 22px; box-shadow: 5px 5px 0 var(--c-ink); touch-action: none; user-select: none; -webkit-user-select: none; }
.zg-ws__cell { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; font-family: var(--f-display); font-weight: 700; font-size: clamp(1rem, 3.2vmin, 1.9rem); cursor: pointer; transition: background-color .15s, transform .15s; }
.zg-ws__cell.is-found { background: var(--hl); }
.zg-ws__cell.is-sel { background: var(--c-green); color: #fff; transform: scale(1.08); }
.zg-ws__list { list-style: none; display: grid; gap: 8px; }
.zg-ws__word { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; background: #fff; border: 2px solid var(--c-ink); border-radius: 16px; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; box-shadow: 2px 2px 0 var(--c-ink); }
.zg-ws__word img { width: 44px; height: 44px; object-fit: contain; }
.zg-ws__word.is-found { opacity: .55; text-decoration: line-through 3px var(--c-coral-strong); background: #E8F8F0; }

/* Robot */
.zg-maze { display: flex; gap: clamp(16px, 3vw, 40px); align-items: center; justify-content: center; width: 100%; }
.zg-maze__grid { position: relative; display: grid; grid-template-columns: repeat(var(--w), 1fr); grid-template-rows: repeat(var(--h), 1fr); width: min(60vw, calc((100dvh - 170px) * var(--w) / var(--h)), 680px); aspect-ratio: calc(var(--w) / var(--h)); background: #fff; border: 2px solid var(--c-ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--c-ink); overflow: hidden; }
.zg-maze__cell { position: relative; border: 1px solid #E2E7F5; display: grid; place-items: center; }
.zg-maze__cell.is-wall { background: repeating-linear-gradient(45deg, #1B2A4A 0 6px, #2A3C64 6px 12px); border-color: #1B2A4A; }
.zg-maze__goal { width: 70%; animation: zg-bob 2s ease-in-out infinite; }
.zg-maze__bot { position: absolute; left: calc(100% / var(--w) * var(--x)); top: calc(100% / var(--h) * var(--y)); width: calc(100% / var(--w)); height: calc(100% / var(--h)); object-fit: contain; padding: 6%; transition: left .3s var(--ease), top .3s var(--ease); filter: drop-shadow(2px 3px 0 rgba(27, 42, 74, .25)); }
.zg-maze__bot.is-bump { animation: zg-shake .4s; }
.zg-maze__grid.is-win { animation: zg-glow .8s var(--ease); }
.zg-maze__side { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 360px; }
.zg-maze__pad { display: grid; grid-template-columns: repeat(3, 64px); grid-template-rows: repeat(2, 64px); gap: 8px; }
.zg-maze__arrow { border: 2px solid var(--c-ink); border-radius: 16px; background: var(--c-yellow); font-size: 1.9rem; font-weight: 800; cursor: pointer; box-shadow: 3px 3px 0 var(--c-ink); color: var(--c-ink); }
.zg-maze__arrow:active { transform: translate(2px, 2px); box-shadow: none; }
.zg-maze__arrow--up { grid-column: 2; grid-row: 1; }
.zg-maze__arrow--left { grid-column: 1; grid-row: 2; }
.zg-maze__arrow--down { grid-column: 2; grid-row: 2; }
.zg-maze__arrow--right { grid-column: 3; grid-row: 2; }
.zg-maze__prog { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; min-height: 56px; width: 100%; padding: 8px; background: #fff; border: 2px dashed var(--c-ink); border-radius: 16px; align-content: flex-start; }
.zg-maze__empty { color: var(--c-text-soft); font-weight: 700; padding: 6px; }
.zg-maze__cmd button { width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--c-ink); background: var(--c-green-light); font-size: 1.3rem; font-weight: 800; cursor: pointer; color: var(--c-ink); }
.zg-maze__cmd.is-now button { background: var(--c-coral); color: #fff; transform: scale(1.12); }

/* Kvíz */
.zg-quiz { display: flex; flex-direction: column; align-items: center; gap: clamp(12px, 2.4vh, 26px); width: 100%; }
.zg-visual { display: grid; place-items: center; }
.zg-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(10px, 2vw, 22px); }
.zg-opt { position: relative; min-width: clamp(80px, 11vw, 130px); min-height: clamp(76px, 11vh, 110px); padding: 10px 18px; border-radius: 22px; border: 2px solid var(--c-ink); background: #fff; box-shadow: 4px 4px 0 var(--c-ink); font-family: var(--f-display); font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); color: var(--c-ink); cursor: pointer; transition: transform .15s, background-color .2s; }
.zg-opt:hover:not(:disabled) { transform: translate(-2px, -3px); }
.zg-opt:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--c-ink); }
.zg-opt.is-wrong { background: #FFE1DC; opacity: .55; cursor: default; }
.zg-opt.is-right { background: #CFF3E2; animation: zg-jump .5s var(--ease); }
.zg-opts.is-done .zg-opt:not(.is-right) { opacity: .45; }
.zg-pic { position: relative; display: grid; place-items: center; width: clamp(180px, 26vh, 300px); aspect-ratio: 1; background: #fff; border: 2px solid var(--c-ink); border-radius: 30px; box-shadow: 5px 5px 0 var(--c-ink); }
.zg-pic img { width: 82%; height: 82%; object-fit: contain; }
.zg-pic__word { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); padding: 4px 18px; background: var(--c-yellow); border: 2px solid var(--c-ink); border-radius: 14px; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.4rem, 1.1rem + 1vw, 2.1rem); white-space: nowrap; }
.zg-visual:not(.is-revealed) .zg-pic__word:not(.zg-gapword) { opacity: 0; }
.zg-gap { display: inline-block; min-width: 1.1em; text-align: center; color: var(--c-coral-strong); border-bottom: 3px dashed var(--c-coral-strong); }
.zg-gap.is-filled { color: #1D6B4F; border-bottom-color: transparent; animation: zg-pop .4s var(--ease); }
.zg-count { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(6px, 1vw, 14px); max-width: min(760px, 92vw); padding: clamp(14px, 2vw, 24px); background: rgba(255, 255, 255, .85); border: 2px solid var(--c-ink); border-radius: 28px; box-shadow: 5px 5px 0 var(--c-ink); }
.zg-count img { width: clamp(64px, 11vh, 124px); transform: rotate(var(--r)); animation: zg-pop .35s var(--ease) both; }
.zg-equation { font-family: var(--f-display); font-weight: 700; font-size: clamp(3rem, 2rem + 4vw, 6rem); background: #fff; border: 2px solid var(--c-ink); border-radius: 30px; padding: 6px 36px; box-shadow: 5px 5px 0 var(--c-ink); }
.zg-equation__q { color: var(--c-coral-strong); }
.zg-equation__q.is-filled { color: #1D6B4F; }
.zg-opts--wagons .zg-opt { min-width: clamp(96px, 12vw, 140px); border-radius: 14px 14px 10px 10px; background: linear-gradient(180deg, #fff 0 70%, var(--c-coral) 70%); padding-bottom: 26px; }
.zg-opts--wagons .zg-opt::before, .zg-opts--wagons .zg-opt::after { content: ""; position: absolute; bottom: -14px; width: 26px; height: 26px; border-radius: 50%; background: var(--c-ink); border: 4px solid #8A97B8; }
.zg-opts--wagons .zg-opt::before { left: 16%; }
.zg-opts--wagons .zg-opt::after { right: 16%; }
.zg-opts--fish .zg-opt { min-width: clamp(150px, 18vw, 220px); padding: 4px 10px; background: rgba(255, 255, 255, .9); }
.zg-opts--fish .zg-opt img { width: 100%; max-height: 110px; object-fit: contain; }
.zg-fish__l { position: absolute; left: 40%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--c-ink); font-size: 2rem; }
.zg-opts--faces .zg-opt, .zg-opts--wagonimg .zg-opt { padding: 8px; background: #fff; }
.zg-opts--faces .zg-opt img { width: clamp(110px, 16vw, 200px); display: block; }
.zg-opts--wagonimg .zg-opt img { width: clamp(110px, 13vw, 170px); display: block; }
.zg-train { display: flex; align-items: flex-end; gap: 2px; max-width: 96vw; padding: 14px 18px 8px; background: rgba(255, 255, 255, .85); border: 2px solid var(--c-ink); border-radius: 24px; box-shadow: 5px 5px 0 var(--c-ink); }
.zg-train img { display: block; }
.zg-train__loco { width: clamp(90px, 12vw, 150px); transform: scaleX(-1); }
.zg-train__wagon { width: clamp(64px, 8vw, 110px); }
.zg-train__slot { display: grid; place-items: center; width: clamp(64px, 8vw, 110px); aspect-ratio: 1.6; border: 3px dashed var(--c-coral-strong); border-radius: 12px; font-family: var(--f-display); font-size: 2rem; color: var(--c-coral-strong); background: #fff; }
.zg-train__slot.is-filled { border-color: transparent; background: none; animation: zg-snap .35s var(--ease); }
.zg-train__slot img { width: 100%; }
.zg-clock { width: clamp(200px, 34vh, 320px); filter: drop-shadow(5px 5px 0 var(--c-ink)); }
.zg-clock__face { fill: #fff; stroke: var(--c-ink); stroke-width: 4; }
.zg-clock__num { font-family: var(--f-display); font-weight: 700; font-size: 20px; text-anchor: middle; fill: var(--c-ink); }
.zg-clock__tick { stroke: #A9B4D0; stroke-width: 1.5; }
.zg-clock__tick.is-major { stroke: var(--c-ink); stroke-width: 3; }
.zg-clock__h { stroke: var(--c-coral-strong); stroke-width: 8; stroke-linecap: round; }
.zg-clock__m { stroke: var(--c-green); stroke-width: 5; stroke-linecap: round; }
.zg-clock__pin { fill: var(--c-ink); }

/* Raketa */
.zg-rocket { position: absolute; left: clamp(8px, 3vw, 40px); top: 12%; bottom: 12%; width: clamp(60px, 7vw, 100px); border-left: 3px dashed rgba(27, 42, 74, .3); pointer-events: none; }
.zg-rocket__planet { position: absolute; top: -40px; left: -12px; width: 110%; }
.zg-rocket__ship { position: absolute; left: -6px; width: 80%; bottom: calc(var(--p, 0) * 78%); transform: rotate(-45deg); transition: bottom .7s var(--ease); filter: drop-shadow(2px 3px 0 rgba(27, 42, 74, .3)); }


/* Textové kartičky (pexeso, triedenie, poradie) */
.zg-face-text { display: grid; place-items: center; padding: 6px; text-align: center; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.1rem, .8rem + 1.6vmin, 2rem); line-height: 1.05; color: var(--c-ink); overflow-wrap: anywhere; }
.zg-face-text.is-long { font-size: clamp(.9rem, .7rem + 1vmin, 1.3rem); }
.zg-card--text .zg-card__front { background: var(--c-yellow-light); }
.zg-token--text { width: auto; min-width: 130px; aspect-ratio: auto; min-height: 74px; padding: 10px 22px; }
.zg-token--text .zg-face-text { font-size: clamp(1.25rem, 1rem + .9vw, 1.8rem); }
.zg-token.has-caption { aspect-ratio: auto; padding-bottom: 8px; }
.zg-token.has-caption img { height: auto; aspect-ratio: 1; width: 78%; margin-top: 8px; }
.zg-token__cap { display: block; padding: 0 8px; text-align: center; font-weight: 800; font-size: clamp(.78rem, .7rem + .3vw, .95rem); line-height: 1.15; }
.zg-seq__slot.is-filled .zg-token.has-caption { aspect-ratio: auto; }
.zg-seq__year { display: inline-block; padding: 0 8px; border-radius: 8px; background: var(--c-yellow); border: 2px solid var(--c-ink); font-family: var(--f-display); font-size: 1.05rem; }

/* Spájanie dvojíc */
.zg-match { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 5vw, 80px); width: 100%; max-width: 900px; }
.zg-match__col { display: grid; gap: 10px; align-content: start; }
.zg-match__item { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 16px; border-radius: 16px; border: 2px solid var(--c-ink); background: #fff; box-shadow: 3px 3px 0 var(--c-ink); font: inherit; font-weight: 800; font-size: clamp(1rem, .9rem + .4vw, 1.25rem); color: var(--c-ink); text-align: left; cursor: pointer; transition: transform .15s, background-color .2s; }
.zg-match__item img { width: 48px; height: 48px; object-fit: contain; flex: none; }
.zg-match__item--r { justify-content: flex-start; }
.zg-match__item:hover:not(:disabled) { transform: translate(-2px, -2px); }
.zg-match__item.is-selected { background: var(--c-green); color: #fff; }
.zg-match__item.is-done { background: var(--pair); box-shadow: none; cursor: default; }

/* Kvíz pre 2. stupeň */
.zg-opts--text .zg-opt { font-size: clamp(1.05rem, .9rem + .6vw, 1.4rem); min-height: 64px; min-width: clamp(150px, 20vw, 240px); }
.zg-question { max-width: 760px; text-align: center; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); background: #fff; border: 2px solid var(--c-ink); border-radius: 24px; padding: 16px 28px; box-shadow: 5px 5px 0 var(--c-ink); }
.zg-pic--wide { width: clamp(260px, 52vh, 540px); aspect-ratio: 3 / 2; }
.zg-pic--wide img { width: 92%; height: 88%; }
.zg-pie { width: clamp(180px, 30vh, 280px); filter: drop-shadow(5px 5px 0 var(--c-ink)); }
.zg-pie path { fill: #fff; stroke: var(--c-ink); stroke-width: .03; }
.zg-pie path.is-on { fill: var(--c-coral); }
.zg-frac { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; vertical-align: middle; }
.zg-frac span:first-child { border-bottom: 3px solid currentColor; padding: 0 .15em .08em; }
.zg-frac span:last-child { padding-top: .08em; }
.zg-equation sup { font-size: .5em; vertical-align: super; }
.zg-bits { display: flex; gap: clamp(6px, 1vw, 12px); padding: 14px 18px; background: #fff; border: 2px solid var(--c-ink); border-radius: 22px; box-shadow: 5px 5px 0 var(--c-ink); }
.zg-bit { display: grid; place-items: center; gap: 2px; width: clamp(48px, 7vw, 76px); padding: 8px 0; border-radius: 14px; border: 2px solid var(--c-ink); background: #E2E7F5; }
.zg-bit b { font-family: var(--f-display); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); line-height: 1; }
.zg-bit small { font-weight: 800; color: var(--c-text-soft); }
.zg-bit.is-on { background: var(--c-yellow); box-shadow: 0 0 18px rgba(255, 200, 61, .9); }
.zg-mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .08em; }
@media (max-width: 520px) { .zg-match { gap: 10px; } .zg-match__item { font-size: .95rem; padding: 6px 10px; min-height: 52px; } .zg-match__item img { width: 34px; height: 34px; } }


/* Nápoveda „i“ */
.zg-hintbtn { position: absolute; left: clamp(10px, 2vw, 24px); bottom: clamp(10px, 2vh, 22px); z-index: 6; display: flex; align-items: center; gap: 10px; padding: 0 18px 0 0; min-height: 64px; border: 3px solid var(--c-ink); border-radius: 99px; background: #fff; box-shadow: 4px 4px 0 var(--c-ink); cursor: pointer; font: inherit; color: var(--c-ink); transition: transform .15s; }
.zg-hintbtn > span[aria-hidden] { display: grid; place-items: center; width: 58px; height: 58px; margin: -3px 0 -3px -3px; border-radius: 50%; background: var(--c-yellow); border: 3px solid var(--c-ink); font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700; font-size: 2.1rem; line-height: 1; animation: zg-hintpulse 2.4s ease-in-out infinite; }
.zg-hintbtn__label { font-weight: 800; font-size: 1.05rem; }
.zg-hintbtn:hover { transform: translate(-2px, -2px); }
.zg-hintbtn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--c-ink); }
.zg-hintbtn[aria-expanded="true"] > span[aria-hidden] { background: var(--c-green); color: #fff; animation: none; }
.zg-hint { position: absolute; left: clamp(10px, 2vw, 24px); bottom: calc(clamp(10px, 2vh, 22px) + 78px); z-index: 7; width: min(440px, calc(100% - 20px)); display: grid; gap: 10px; padding: 18px 20px; background: #fff; border: 3px solid var(--c-ink); border-radius: 22px 22px 22px 6px; box-shadow: 6px 6px 0 var(--c-ink); animation: zg-pop .25s var(--ease); }
.zg-hint__title { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; }
.zg-hint__i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c-yellow); border: 2px solid var(--c-ink); font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 1.3rem; }
.zg-hint__text { margin: 0; font-size: 1.08rem; line-height: 1.5; }
.zg-hint__learn { font-weight: 800; color: var(--c-green); }
.zg-hint__close { justify-self: start; }
@keyframes zg-hintpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 200, 61, .7); } 50% { box-shadow: 0 0 0 10px rgba(255, 200, 61, 0); } }
@media (max-width: 520px) { .zg-hintbtn { min-height: 54px; } .zg-hintbtn > span[aria-hidden] { width: 50px; height: 50px; font-size: 1.8rem; } .zg-hintbtn__label { display: none; } .zg-hintbtn { padding: 0; } .zg-hint { bottom: 76px; } }

/* Konfety */
.zg-confetti { position: absolute; inset: 0; pointer-events: none; z-index: 20; }

/* Nízkopodnetový režim - bez pohybu, tlmené farby */
.is-calm *, .is-calm *::before, .is-calm *::after { animation: none !important; transition-duration: .01ms !important; }
.is-calm .zg-progress span { background: #9FD9C1; }
.is-calm .zg-opt.is-right { background: #E3F4EC; }
.is-calm .zg-owl__bubble { font-weight: 700; }

/* Animácie */
@keyframes zg-pop { from { transform: scale(.82); } to { transform: none; } }
@keyframes zg-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes zg-jump { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-16px) rotate(-3deg); } }
@keyframes zg-tilt { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-8deg); } 60% { transform: rotate(6deg); } }
@keyframes zg-shake { 0%, 100% { translate: 0; } 20% { translate: -8px; } 40% { translate: 8px; } 60% { translate: -5px; } 80% { translate: 5px; } }
@keyframes zg-glow { 0% { box-shadow: 0 0 0 0 rgba(56, 180, 139, .7), 4px 4px 0 var(--c-ink); } 100% { box-shadow: 0 0 0 18px rgba(56, 180, 139, 0), 4px 4px 0 var(--c-ink); } }
@keyframes zg-gulp { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.06, .94); } }
@keyframes zg-star { from { transform: scale(.3) rotate(-40deg); } to { transform: none; } }
@keyframes zg-reveal { from { transform: scale(.7); } to { transform: none; } }
@keyframes zg-snap { from { transform: scale(1.12); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .zg *, .zg *::before, .zg *::after { animation: none !important; } }

/* Menšie obrazovky */
@media (max-width: 860px) {
  .zg-brand span { display: none; }
  .zg-start { flex-direction: column; text-align: center; }
  .zg-start__intro { margin-inline: auto; }
  .zg-levels { justify-content: center; }
  .zg-play--shadow, .zg-ws, .zg-maze { flex-direction: column; }
  .zg-ws__list { grid-template-columns: repeat(2, 1fr); }
  .zg-maze__grid { width: min(92vw, 520px); }
  .zg-seq__slots { grid-template-columns: repeat(min(var(--n), 3), minmax(0, 1fr)); }
  .zg-iconbtn { width: 42px; height: 42px; }
  .zg-tools { gap: 6px; }
  .zg-rocket { display: none; }
}
@media (max-width: 520px) {
  .zg-progress { display: none; }
  .zg-memory { width: 100%; }
  .zg-bins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zg-bin { min-height: 92px; padding: 10px 8px 8px; border-radius: 18px 18px 24px 24px; }
  .zg-bin__img { width: 42px; }
  .zg-bin__swatch { width: 40px; }
  .zg-tray .zg-token { width: 70px; border-radius: 16px; }
  .zg-play { gap: 12px; }
}
.zg-question--word { max-width: 820px; text-align: left; font-family: var(--f-text); font-weight: 700; font-size: clamp(1.15rem, .95rem + .8vw, 1.6rem); line-height: 1.45; }
/* Košíky nesmú zasahovať pod tlačidlo nápovedy vľavo dole */
.zg-bins { margin-bottom: clamp(64px, 9vh, 88px); }

/*
   2. stupeň - dospelejší vzhľad („teen“): tmavé štúdiové prostredie,
   čisté karty, bez sovičky, konfiet a hviezdičiek, výsledok v percentách
 */
.zg--teen { --t-bg: #0E1730; --t-card: #FFFFFF; --t-line: rgba(255, 255, 255, .14); --t-ink: #0E1730; --t-accent: #4C7BFF; --t-soft: #5B6888;
  background: radial-gradient(1200px 600px at 80% -10%, #22356B 0%, rgba(34, 53, 107, 0) 60%), var(--t-bg); color: #E8EDFF; }
.zg--teen .zg-bg { filter: blur(10px) saturate(.5) brightness(.35); transform: scale(1.08); }
.zg--teen[data-bg]::before { background: linear-gradient(160deg, rgba(14, 23, 48, .78), rgba(14, 23, 48, .92)); }
.zg--teen::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 40px 40px; }
.zg--teen .zg-bar { background: rgba(14, 23, 48, .72); border-bottom-color: var(--t-line); }
.zg--teen .zg-brand { color: #fff; font-family: var(--f-text); font-weight: 800; font-size: 1.05rem; }
.zg--teen .zg-brand img { transform: none; }
.zg--teen .zg-progress { background: rgba(255, 255, 255, .12); border-color: transparent; height: 8px; }
.zg--teen .zg-progress span { background: linear-gradient(90deg, var(--t-accent), #7CE0C3); border-right: 0; }
.zg--teen .zg-iconbtn { background: rgba(255, 255, 255, .08); border-color: var(--t-line); color: #fff; box-shadow: none; }
.zg--teen .zg-iconbtn[aria-pressed="true"] { background: var(--t-accent); border-color: var(--t-accent); }

.zg--teen .zg-start, .zg--teen .zg-end { border: 1px solid var(--t-line); border-radius: 20px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7); color: var(--t-ink); }
.zg--teen .zg-start__cat { color: var(--t-accent); letter-spacing: .14em; }
.zg--teen .zg-start__title, .zg--teen .zg-end__title { font-family: var(--f-text); font-weight: 900; letter-spacing: -.02em; }
.zg--teen .zg-level { border: 1px solid #CBD3EA; border-radius: 10px; font-weight: 700; }
.zg--teen .zg-level.is-active { background: var(--t-ink); border-color: var(--t-ink); box-shadow: none; }
.zg--teen .zg-go { border-radius: 12px; }

.zg--teen .zg-prompt { background: transparent; border: 0; box-shadow: none; color: #fff; font-family: var(--f-text); font-weight: 800; font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); letter-spacing: .02em; opacity: .8; }
.zg--teen .zg-question { font-family: var(--f-text); font-weight: 800; border: 1px solid var(--t-line); border-radius: 16px; box-shadow: 0 20px 50px -25px rgba(0, 0, 0, .8); color: var(--t-ink); }
.zg--teen .zg-opt, .zg--teen .zg-match__item, .zg--teen .zg-token { border: 1px solid #D5DCEF; border-radius: 12px; box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .55); color: var(--t-ink); font-family: var(--f-text); font-weight: 700; }
.zg--teen .zg-opt:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--t-accent); }
.zg--teen .zg-opt:active:not(:disabled) { transform: none; box-shadow: none; }
.zg--teen .zg-opt.is-right { background: #D7F5E8; border-color: #23A26F; animation: none; }
.zg--teen .zg-opt.is-wrong { background: #FFE4E0; border-color: #E5543F; }
.zg--teen .zg-match__item.is-selected { background: var(--t-accent); border-color: var(--t-accent); color: #fff; }
.zg--teen .zg-card__back, .zg--teen .zg-card__front { border: 1px solid #D5DCEF; border-radius: 12px; box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .55); }
.zg--teen .zg-card__back { background: linear-gradient(135deg, #2A3F7A, #1A2850); }
.zg--teen .zg-card__back::after { opacity: .35; filter: grayscale(1) brightness(3); }
.zg--teen .zg-card--text .zg-card__front { background: #fff; font-family: var(--f-text); }
.zg--teen .zg-bin { border-radius: 14px; }
.zg--teen .zg-hintbtn { border: 1px solid var(--t-line); background: rgba(255, 255, 255, .1); color: #fff; box-shadow: none; min-height: 52px; }
.zg--teen .zg-hintbtn > span[aria-hidden] { width: 46px; height: 46px; border: 0; animation: none; font-size: 1.6rem; }

/* sovička → nenápadná správa hore */
.zg--teen .zg-owl { left: 50%; right: auto; top: 76px; bottom: auto; width: auto; transform: translate(-50%, -12px); opacity: 0; transition: opacity .2s, transform .2s; }
.zg--teen .zg-owl img { display: none; }
.zg--teen.is-playing .zg-owl { transform: translate(-50%, -12px); }
.zg--teen .zg-owl.is-talking { opacity: 1; transform: translate(-50%, 0) !important; }
.zg--teen .zg-owl__bubble { position: static; display: block; opacity: 1; transform: none; border: 0; border-radius: 99px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); background: #fff; color: var(--t-ink); font-family: var(--f-text); font-size: .95rem; padding: 8px 18px; }
.zg--teen .zg-owl.is-happy .zg-owl__bubble { background: #23A26F; color: #fff; }
.zg--teen .zg-owl.is-think .zg-owl__bubble { background: #E5543F; color: #fff; }

/* výsledok v percentách */
.zg-score { display: grid; gap: 4px; justify-items: center; margin: 6px 0 2px; }
.zg-score__pct { font-family: var(--f-text); font-weight: 900; font-size: clamp(3.2rem, 2.4rem + 3vw, 5rem); line-height: 1; letter-spacing: -.03em; color: var(--t-accent, #2F5BEA); }
.zg-score__info { font-weight: 700; color: var(--t-soft, #4A5675); }
.zg--teen .zg-go, .zg--teen .zg-end .btn--primary { box-shadow: none; border-radius: 12px; }
.zg--teen .zg-end .btn { border-radius: 12px; }

/* Nápoveda: vždy tmavý, dobre čitateľný text */
.zg-hint { color: var(--c-ink); }
.zg-hint__text { color: #1B2A4A; font-weight: 600; }
.zg-hint__learn { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .zg-hint { left: 10px; right: 10px; width: auto; max-height: min(62dvh, 460px); overflow-y: auto; padding: 16px 18px; gap: 8px; }
  .zg-hint__title { font-size: 1.2rem; }
  .zg-hint__text { font-size: 1.08rem; line-height: 1.55; }
  .zg-hint__close { justify-self: stretch; }
}
@media (max-width: 520px) { .zg-hint { bottom: 74px; } }
/* 2. stupeň: biela karta s tmavým textom aj v tmavom režime */
.zg--teen .zg-hint { color: #0E1730; background: #fff; border: 1px solid #D5DCEF; border-radius: 16px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .75); }
.zg--teen .zg-hint__title { font-family: var(--f-text); font-weight: 900; }
.zg--teen .zg-hint__i { border: 0; }
.zg--teen .zg-hint__text { color: #1F2A44; }
.zg--teen .zg-hint__learn { color: #2F5BEA; }
.zg--teen .zg-hint__close { box-shadow: none; border-radius: 12px; }
/* všetky biele karty v hre majú tmavý text, svetlý text ostáva len priamo na tmavom pozadí */
.zg--teen .zg-stage { color: var(--t-ink); }
.zg--teen .zg-seq__slot { background: rgba(255, 255, 255, .92); border-color: #9AA6C8; }
/* Textové kartičky: slovo sa nikdy nelomí uprostred */
.zg-token--text .zg-face-text, .zg-card--text .zg-face-text, .zg-match__item span { word-break: normal; overflow-wrap: normal; hyphens: manual; }
.zg-token--text .zg-face-text { white-space: nowrap; }
@media (max-width: 600px) {
  .zg-token--text, .zg-tray .zg-token--text { width: auto; min-width: 0; min-height: 56px; padding: 8px 14px; aspect-ratio: auto; }
  .zg-token--text .zg-face-text { font-size: clamp(1rem, 4.2vw, 1.25rem); }
}
/* Pexeso s textom: písmo sa prispôsobí veľkosti karty */
.zg-card__front { container-type: inline-size; }
.zg-card--text .zg-face-text { font-size: clamp(.7rem, 16cqi, 1.6rem); padding: 4px; line-height: 1.1; }
/* Obrázok v otázke nesmie byť širší ako obrazovka */
.zg-pic, .zg-pic--wide { max-width: calc(100vw - 28px); }
/* Vláčik podľa vzoru na úzkych displejoch */
@media (max-width: 700px) {
  .zg-train { width: 100%; max-width: calc(100vw - 20px); padding: 10px 10px 6px; gap: 1px; }
  .zg-train__loco { flex: 0 0 20%; width: auto; min-width: 0; }
  .zg-train__wagon, .zg-train__slot { flex: 1 1 0; min-width: 0; width: auto; max-width: 90px; }
  .zg-train__slot { font-size: 1.4rem; border-width: 2px; }
}
/* Puzzle: plocha a zásobník sa vždy zmestia na obrazovku (zásobník najviac v 2 radoch) */
.zg-puzzle__board, .zg-puzzle__tray { --w: min(92vw, calc((100dvh - var(--reserve, 330px)) * var(--ratio)), 900px); }
.zg-puzzle__tray .zg-piece { width: min(calc(var(--w) / var(--cols) * .62), calc((96vw - (var(--perrow, 4) - 1) * 10px) / var(--perrow, 4))); }
/* Tablet: širší panel nápovedy a väčšie písmo */
@media (min-width: 761px) and (max-width: 1100px) {
  .zg-hint { width: min(560px, calc(100% - 40px)); padding: 20px 24px; }
  .zg-hint__title { font-size: 1.35rem; }
  .zg-hint__text { font-size: 1.18rem; line-height: 1.55; }
}

/* Puzzle: hranaté kúsky bez natočenia; hrubý okraj = kraj obrázka, dva hrubé okraje = roh */
.zg-puzzle__board { border: 5px solid var(--c-ink); border-radius: 4px; box-shadow: 6px 6px 0 rgba(27, 42, 74, .25); }
.zg-puzzle__slot.is-corner::after { content: ""; position: absolute; width: 26%; height: 26%; border: 0 solid var(--c-coral-strong); pointer-events: none; opacity: .9; }
.zg-puzzle__slot.is-corner.is-top::after { top: 6px; border-top-width: 4px; }
.zg-puzzle__slot.is-corner.is-bottom::after { bottom: 6px; border-bottom-width: 4px; }
.zg-puzzle__slot.is-corner.is-left::after { left: 6px; border-left-width: 4px; }
.zg-puzzle__slot.is-corner.is-right::after { right: 6px; border-right-width: 4px; }
.zg-puzzle__slot.is-filled::after { display: none; }
.zg-puzzle__tray .zg-piece { border-radius: 0; transform: none; border: 1.5px solid rgba(27, 42, 74, .4); box-shadow: 0 8px 16px -10px rgba(27, 42, 74, .6); }
.zg-puzzle__tray .zg-piece.is-top { border-top: 5px solid var(--c-ink); }
.zg-puzzle__tray .zg-piece.is-bottom { border-bottom: 5px solid var(--c-ink); }
.zg-puzzle__tray .zg-piece.is-left { border-left: 5px solid var(--c-ink); }
.zg-puzzle__tray .zg-piece.is-right { border-right: 5px solid var(--c-ink); }
.zg-puzzle__tray .zg-piece.is-corner { position: relative; }
.zg-puzzle__tray .zg-piece.is-corner::after { content: ""; position: absolute; width: 30%; height: 30%; border: 0 solid var(--c-coral-strong); pointer-events: none; }
.zg-puzzle__tray .zg-piece.is-corner.is-top::after { top: 3px; border-top-width: 4px; }
.zg-puzzle__tray .zg-piece.is-corner.is-bottom::after { bottom: 3px; border-bottom-width: 4px; }
.zg-puzzle__tray .zg-piece.is-corner.is-left::after { left: 3px; border-left-width: 4px; }
.zg-puzzle__tray .zg-piece.is-corner.is-right::after { right: 3px; border-right-width: 4px; }
.zg-piece.is-selected { transform: translateY(-4px) scale(1.05); }

/* Jednorazové upozornenie (Firefox na Macu - ťuknutie pri čítaní) */
.zg-note { position: absolute; z-index: 30; left: 50%; top: calc(76px + env(safe-area-inset-top)); transform: translateX(-50%); width: min(560px, calc(100% - 24px)); display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: #fff; color: var(--c-ink); border: 2px solid var(--c-ink); border-radius: 16px; box-shadow: 4px 5px 0 var(--c-ink); font-size: .95rem; line-height: 1.45; }
.zg-note p { margin: 0; }
.zg-note .btn { flex: none; }
@media (max-width: 520px) { .zg-note { flex-direction: column; align-items: stretch; text-align: left; } }
/* Veľký znak (čínske/japonské písmo) v otázke */
.zg-question--glyph { font-size: clamp(4rem, 14vw, 7.5rem); line-height: 1.1; padding: 12px 36px; font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans CJK SC", "Noto Sans JP", "Microsoft YaHei", "Yu Gothic", sans-serif; font-weight: 600; }

/* Veľké a výrazné písmená na výber (aj pre deti so slabším zrakom) */
.zg-opts--wagons .zg-opt { min-width: clamp(118px, 15vw, 180px); min-height: clamp(118px, 17vh, 170px); padding: 8px 14px 34px; border-width: 3px; }
.zg-wagon__l { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(3.2rem, 2.2rem + 4vw, 5.6rem); line-height: 1; letter-spacing: .02em; color: #10162E; }
.zg-opts--text.zg-opts--letters .zg-opt { min-width: clamp(104px, 13vw, 160px); min-height: clamp(104px, 15vh, 150px); border-width: 3px; font-weight: 800; font-size: clamp(3rem, 2rem + 3.6vw, 5.2rem); line-height: 1; color: #10162E; }
@media (max-width: 520px) {
  .zg-opts--wagons { gap: 8px; }
  .zg-opts--wagons .zg-opt { min-width: 76px; min-height: 100px; padding: 6px 6px 30px; }
  .zg-wagon__l { font-size: 2.7rem; }
  .zg-opts--text.zg-opts--letters .zg-opt { min-width: 88px; min-height: 88px; font-size: 2.8rem; }
}
/* Vybrané slová: väčšie i/y na rybkách a väčšie slovo s medzerou */
.zg-fish__l { width: clamp(64px, 7vw, 84px); height: clamp(64px, 7vw, 84px); border-width: 3px; font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); line-height: 1; color: #10162E; }
.zg-pic__word.zg-gapword { font-weight: 800; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.8rem); color: #10162E; letter-spacing: .04em; }
/* Osemsmerovka: väčšie a tmavšie písmená v mriežke aj v zozname slov */
.zg-ws__cell { font-weight: 800; font-size: clamp(1.25rem, 4.6vmin, 2.7rem); color: #10162E; }
.zg-ws__cell.is-sel { color: #fff; }
.zg-ws__word { font-size: clamp(1rem, .85rem + .6vw, 1.35rem); font-weight: 800; }

/* Tlačidlo so zvukom zvieratka (hra Kto to robí?) */
.zg-sound { display: inline-flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 26px 10px 18px; border: 2px solid var(--c-ink); border-radius: 999px; background: var(--c-yellow); box-shadow: 4px 4px 0 var(--c-ink); font-family: var(--f-display); font-weight: 800; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); color: var(--c-ink); cursor: pointer; transition: transform .15s; }
.zg-sound svg { width: 38px; height: 38px; flex: none; fill: var(--c-ink); }
.zg-sound svg .zg-sound__w { fill: none; stroke: var(--c-ink); stroke-width: 2.2; stroke-linecap: round; }
.zg-sound:hover { transform: translateY(-2px); }
.zg-sound:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--c-ink); }
.zg-sound:focus-visible { outline: 3px solid var(--c-blue, #2F5BEA); outline-offset: 3px; }
.zg-sound.is-playing svg .zg-sound__w { animation: zg-sound-wave .6s ease-in-out infinite alternate; }
@keyframes zg-sound-wave { from { opacity: .25; } to { opacity: 1; } }
.is-calm .zg-sound.is-playing svg .zg-sound__w, .zg--calm .zg-sound.is-playing svg .zg-sound__w { animation: none; }
@media (prefers-reduced-motion: reduce) { .zg-sound.is-playing svg .zg-sound__w { animation: none; } }
.zg-sounds { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; }
.zg-sound--voice { background: #fff; }
.zg-sound svg .zg-sound__f { fill: none; stroke: var(--c-ink); stroke-width: 2; }
.zg-sound svg .zg-sound__m { fill: none; stroke: var(--c-ink); stroke-width: 1.8; stroke-linecap: round; }
@media (max-width: 520px) { .zg-sound { min-height: 54px; padding: 8px 18px 8px 12px; gap: 8px; font-size: 1.05rem; } .zg-sound svg { width: 30px; height: 30px; } }
.zg-sound--say { background: #fff; }
.zg-sound svg .zg-sound__n { fill: none; stroke: var(--c-ink); stroke-width: 2; stroke-linejoin: round; }
.zg-visual .zg-sounds { margin-top: 18px; }
/* Reproduktor v bubline s otázkou - prečíta vetu nahlas */
.zg-prompt.has-say { display: inline-flex; align-items: center; gap: 12px; }
.zg-prompt__say { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--c-ink); border-radius: 50%; background: var(--c-yellow); cursor: pointer; transition: transform .15s; }
.zg-prompt__say svg { width: 24px; height: 24px; fill: var(--c-ink); }
.zg-prompt__say svg .zg-sound__w { fill: none; stroke: var(--c-ink); stroke-width: 2.2; stroke-linecap: round; }
.zg-prompt__say:hover { transform: scale(1.08); }
.zg-prompt__say:focus-visible { outline: 3px solid var(--c-blue, #2F5BEA); outline-offset: 3px; }
.zg-prompt__say.is-playing svg .zg-sound__w { animation: zg-sound-wave .6s ease-in-out infinite alternate; }
@media (max-width: 520px) { .zg-prompt__say { width: 38px; height: 38px; } .zg-prompt__say svg { width: 20px; height: 20px; } }

/* Upozornenie vo vstavanom prehliadači aplikácie (Messenger, Facebook…) */
.zg-inapp { position: absolute; z-index: 40; left: 50%; top: calc(76px + env(safe-area-inset-top)); transform: translateX(-50%); width: min(560px, calc(100% - 24px)); padding: 14px 44px 14px 16px; background: #FFF6D6; color: var(--c-ink); border: 2px solid var(--c-ink); border-radius: 16px; box-shadow: 4px 5px 0 var(--c-ink); font-size: .95rem; line-height: 1.45; }
.zg-inapp p { margin: 0 0 8px; }
.zg-inapp__how { font-size: .9rem; }
.zg-inapp__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.zg-inapp__close { position: absolute; top: 6px; right: 8px; width: 34px; height: 34px; border: 0; background: transparent; font-size: 1.6rem; line-height: 1; color: var(--c-ink); cursor: pointer; }

/* Fotka v kvíze (fotka → obrázok, otázky s fotkou) a veľké obrázky košíkov */
.zg-pic--photo { width: clamp(180px, 30vh, 320px); overflow: hidden; padding: 0; }
.zg-pic--photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }
.zg-visual:has(.zg-question) .zg-pic--photo { width: clamp(150px, 24vh, 260px); margin-top: 14px; }
.zg-bins--big .zg-bin__img { width: clamp(84px, 11vw, 150px); border-radius: 14px; }
.zg-bins--big .zg-bin { min-height: clamp(160px, 26vh, 250px); }
@media (max-width: 760px) { .zg-bins--big .zg-bin__img { width: 64px; } .zg-bins--big .zg-bin { min-height: 120px; } }

/* Cvičný test nanečisto (Testovanie 9) */
.zg-play--exam { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 14px; width: min(1180px, 100%); height: auto; min-height: 100%; margin: 0 auto; padding: 14px 0 96px; }
.zg-exam__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; color: #fff; font-weight: 800; }
.zg-exam__count { font-size: 1.05rem; }
.zg-exam__clock { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); font-variant-numeric: tabular-nums; }
.zg-exam__clock.is-low { background: #E5543F; border-color: #E5543F; }
.zg-exam__body { display: grid; gap: 14px; }
.zg-exam__body.has-passage { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
.zg-exam__passage, .zg-exam__task, .zg-exam__result { background: #fff; color: #10162E; border-radius: 16px; padding: clamp(16px, 2.2vw, 26px); box-shadow: 0 20px 50px -25px rgba(0, 0, 0, .8); text-align: left; }
.zg-exam__passage { max-height: min(62vh, 640px); overflow: auto; font-size: 1.02rem; line-height: 1.6; }
.zg-exam__passage p { margin: 0 0 .8em; }
.zg-exam__passage p.is-verse { font-style: italic; }
.zg-exam__ptitle { margin: 0 0 .6em; font-size: 1.15rem; }
.zg-exam__q { font-weight: 700; font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); line-height: 1.45; margin: 0 0 14px; }
.zg-exam__opts { display: grid; gap: 10px; }
.zg-exam__opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 2px solid #D5DBEA; border-radius: 12px; background: #fff; color: #10162E; font: inherit; font-size: 1.02rem; text-align: left; cursor: pointer; }
.zg-exam__opt:hover { border-color: #4C7BFF; }
.zg-exam__opt.is-selected { border-color: #2F5BEA; background: #E7EEFF; }
.zg-exam__letter { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #EEF1FA; font-weight: 800; }
.zg-exam__opt.is-selected .zg-exam__letter { background: #2F5BEA; color: #fff; }
.zg-exam__label { display: grid; gap: 8px; font-weight: 700; }
.zg-exam__input { width: min(420px, 100%); padding: 12px 14px; border: 2px solid #D5DBEA; border-radius: 12px; font: inherit; font-size: 1.15rem; color: #10162E; }
.zg-exam__input:focus { outline: none; border-color: #2F5BEA; box-shadow: 0 0 0 4px rgba(47, 91, 234, .18); }
.zg-exam__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.zg-exam__submit { margin-left: auto; }
.zg-exam__note { flex-basis: 100%; text-align: right; color: #FFD27A; font-weight: 700; }
.zg-exam__grid { display: flex; flex-wrap: wrap; gap: 6px; }
.zg-exam__dot { width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.zg-exam__dot.is-answered { background: #4C7BFF; border-color: #4C7BFF; }
.zg-exam__dot.is-current { outline: 3px solid #FFC83D; outline-offset: 1px; }
.zg-exam__table { border-collapse: collapse; margin: 6px 0 12px; font-size: .98rem; }
.zg-exam__table th, .zg-exam__table td { border: 1px solid #CFD7EE; padding: 6px 10px; text-align: left; }
.zg-exam__table th { background: #EEF1FA; }
.zg-exam__tablewrap { overflow-x: auto; }
.zg-exam__result { display: grid; gap: 12px; }
.zg-exam__result .zg-score { color: #10162E; }
.zg-exam__done, .zg-exam__verdict { margin: 0; font-weight: 700; }
.zg-exam__rtitle { margin: 8px 0 0; }
.zg-exam__item { border: 1px solid #D5DBEA; border-radius: 12px; padding: 10px 14px; }
.zg-exam__item summary { cursor: pointer; font-weight: 700; }
.zg-exam__item p { margin: 8px 0 0; }
.zg-exam__mark { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: .85rem; }
.zg-exam__item.is-ok .zg-exam__mark { background: #2FA36F; }
.zg-exam__item.is-bad .zg-exam__mark { background: #E5543F; }
@media (max-width: 860px) {
  .zg-exam__body.has-passage { grid-template-columns: 1fr; }
  .zg-exam__passage { max-height: 42vh; }
  .zg-exam__submit { margin-left: 0; }
  .zg-exam__note { text-align: left; }
}
.zg-stage:has(.zg-play--exam) { align-items: flex-start; }

/* Zápisník pod úlohou (písanie aj kreslenie prstom) */
.zg-pad { margin-top: 16px; border-top: 1px dashed #CFD7EE; padding-top: 12px; }
.zg-pad__toggle { border: 0; background: none; padding: 4px 0; font: inherit; font-weight: 800; color: #2F5BEA; cursor: pointer; }
.zg-pad__tabs { display: flex; gap: 6px; margin: 8px 0; }
.zg-pad__tab { padding: 6px 12px; border-radius: 999px; border: 1.5px solid #D5DBEA; background: #fff; font: inherit; font-size: .92rem; font-weight: 700; color: #10162E; cursor: pointer; }
.zg-pad__tab.is-active { background: #10162E; border-color: #10162E; color: #fff; }
.zg-pad__text { width: 100%; min-height: 110px; padding: 10px 12px; border: 2px solid #D5DBEA; border-radius: 12px; font: inherit; font-size: 1rem; color: #10162E; resize: vertical; background: #FFFDF5; }
.zg-pad__canvas { display: block; width: 100%; height: clamp(180px, 32vh, 300px); border: 2px solid #D5DBEA; border-radius: 12px; touch-action: none; cursor: crosshair;
  background-color: #FFFDF5; background-image: linear-gradient(#E6ECF8 1px, transparent 1px), linear-gradient(90deg, #E6ECF8 1px, transparent 1px); background-size: 22px 22px; }
.zg-pad__tools { display: flex; justify-content: flex-end; margin-top: 6px; }
/* Úvod pred testom a režim skúšky */
.zg-exam__intro p { line-height: 1.55; }
.zg-exam__strict { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: #EEF1FA; cursor: pointer; line-height: 1.45; }
.zg-exam__strict input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.zg-exam__lock { margin: 0 0 14px; }
.zg-exam__lock summary { cursor: pointer; font-weight: 700; color: #2F5BEA; }
.zg-exam__lock ul { margin: 6px 0 0; padding-left: 20px; line-height: 1.5; }
.zg-exam__warn { position: fixed; inset: auto 16px 90px 16px; z-index: 50; max-width: 520px; margin: 0 auto; padding: 16px; border-radius: 16px; background: #FFF3D1; color: #10162E; border: 2px solid #E5543F; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .7); display: grid; gap: 10px; }
.zg-exam__warn[hidden] { display: none; }
.zg-exam__warnp { margin: 0; font-weight: 800; }
.zg-exam__hist { margin: 0; color: #4A5675; }
/* Tlač testu */
.zg-print { display: none; }
@media print {
  html.is-printing body > *:not(.zg-print) { display: none !important; }
  html.is-printing .zg-print { display: block; color: #000; font: 12pt/1.45 Georgia, serif; }
  .zg-print h1 { font-size: 18pt; margin: 0 0 6pt; }
  .zg-print__passage { border: 1px solid #999; padding: 8pt 10pt; margin: 10pt 0; page-break-inside: avoid; }
  .zg-print__task { margin: 8pt 0; page-break-inside: avoid; }
  .zg-print__task ol { margin: 4pt 0 0 18pt; }
  .zg-print__line { color: #444; }
  .zg-print__key { page-break-before: always; }
  .zg-print table { border-collapse: collapse; } .zg-print th, .zg-print td { border: 1px solid #999; padding: 3pt 6pt; }
}
/* Informácia „vždy iný test“ na úvodnej obrazovke cvičného testu */
.zg-start__info { display: flex; gap: 12px; align-items: flex-start; max-width: 620px; margin: 4px 0 16px; padding: 12px 14px; border-radius: 14px; background: rgba(76, 123, 255, .14); border: 1px solid rgba(76, 123, 255, .45); color: inherit; font-size: .98rem; line-height: 1.5; text-align: left; }
.zg-start__i { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #4C7BFF; color: #fff; font-weight: 800; font-style: italic; font-family: Georgia, serif; }

/* Dva tímy pri tabuli */
.zg-teamtoggle { display: flex; gap: 12px; align-items: flex-start; max-width: 620px; margin: -6px 0 20px; padding: 12px 14px; border: 2px dashed rgba(27, 42, 74, .35); border-radius: 14px; background: rgba(255, 255, 255, .7); font: inherit; font-size: .98rem; line-height: 1.45; color: inherit; text-align: left; cursor: pointer; }
.zg-teamtoggle__box { flex: none; width: 26px; height: 26px; margin-top: 1px; border: 2px solid var(--c-ink); border-radius: 8px; background: #fff; display: grid; place-items: center; }
.zg-teamtoggle[aria-pressed="true"] { border-style: solid; border-color: #2F5BEA; background: #EEF2FF; }
.zg-teamtoggle[aria-pressed="true"] .zg-teamtoggle__box { background: #2F5BEA; border-color: #2F5BEA; }
.zg-teamtoggle[aria-pressed="true"] .zg-teamtoggle__box::after { content: ""; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: translateY(-2px) rotate(45deg); }
.zg-stage:has(> .zg-teams) { flex-direction: column; justify-content: flex-start; gap: 10px; }
.zg-stage:has(> .zg-teams) > .zg-play { flex: 1; height: auto; min-height: 0; }
.zg-teams { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; }
.zg-team { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 16px; border-radius: 99px; border: 3px solid transparent; background: rgba(255, 255, 255, .9); box-shadow: 0 4px 0 rgba(27, 42, 74, .15); font-weight: 800; color: #1B2A4A; transition: transform .2s; }
.zg-team__score { min-width: 44px; height: 44px; padding: 0 8px; border-radius: 99px; display: grid; place-items: center; font-size: 1.4rem; color: #fff; }
.zg-team--0 .zg-team__score { background: #2F5BEA; }
.zg-team--1 .zg-team__score { background: #E0A100; }
.zg-team--0.is-turn { border-color: #2F5BEA; transform: scale(1.06); }
.zg-team--1.is-turn { border-color: #E0A100; transform: scale(1.06); }
.zg-teams__turn { flex-basis: 100%; margin: 0 auto; max-width: max-content; padding: 8px 22px; border-radius: 99px; text-align: center; font-weight: 800; font-size: clamp(1.1rem, .95rem + .7vw, 1.6rem); color: #fff; border: 2px solid var(--c-ink); box-shadow: 3px 3px 0 var(--c-ink); animation: zg-pop .35s var(--ease) both; }
.zg-teams__turn--0 { background: #2F5BEA; }
.zg-teams__turn--1 { background: #E0A100; }
.zg-teams__turn strong { text-transform: uppercase; letter-spacing: .03em; }
.zg-teams__arrow { display: inline-block; animation: zg-nudge 1s ease-in-out infinite; }
.zg-team.is-wait { opacity: .5; transform: scale(.94); }
.zg-team.is-turn { border-width: 4px; box-shadow: 0 0 0 5px rgba(255, 255, 255, .8), 0 6px 0 rgba(27, 42, 74, .2); }
@keyframes zg-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
.is-calm .zg-teams__turn, .is-calm .zg-teams__arrow, .is-calm .zg-tb-turn span { animation: none; }
.zg-teams--end { margin: 4px 0 14px; }
.zg-teams--end .zg-team { transform: none; }
.is-calm .zg-team { transition: none; }

/* Ranný kruh */
.zg-opts--days { flex-wrap: wrap; max-width: 980px; }
.zg-opts--days .zg-opt { display: inline-flex; align-items: center; gap: 10px; min-width: 150px; }
.zg-kruh__dot { width: 20px; height: 20px; border-radius: 50%; flex: none; border: 2px solid rgba(27, 42, 74, .25); }
.zg-opts--pics { flex-wrap: wrap; }
.zg-opts--pics .zg-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 12px 12px; background: #fff; }
.zg-opts--pics .zg-opt img { width: clamp(96px, 13vw, 170px); aspect-ratio: 1; object-fit: cover; border-radius: 14px; display: block; }
.zg-kruh__sum { max-width: 640px; padding: clamp(18px, 3vw, 34px); background: #fff; border: 2px solid var(--c-ink); border-radius: 28px; box-shadow: 5px 5px 0 var(--c-ink); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.zg-kruh__title { margin: 0 0 4px; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); }
.zg-kruh__line { margin: 0; font-size: clamp(1.1rem, .95rem + .7vw, 1.5rem); font-weight: 700; color: #1B2A4A; }
.zg-kruh__sum .btn { margin-top: 10px; }

.zg-kruh__dot--0 { background: #E86FA8; }
.zg-kruh__dot--1 { background: #E8503F; }
.zg-kruh__dot--2 { background: #2F5BEA; }
.zg-kruh__dot--3 { background: #2FA36F; }
.zg-kruh__dot--4 { background: #F5B800; }
.zg-kruh__dot--5 { background: #8A5CD6; }
.zg-kruh__dot--6 { background: #F28C28; }

/* Obchod: platenie do misky */
.zg-play--obchod { justify-content: flex-end; gap: 0; max-width: 1280px; padding-bottom: clamp(52px, 8vh, 72px); }
.zg-shop { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(10px, 2vh, 20px); }
.zg-shop__counter { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.15fr 1fr 1.15fr; align-items: end; gap: clamp(10px, 2vw, 28px); padding: 0 clamp(4px, 1vw, 12px) clamp(10px, 2vh, 18px); border-bottom: 10px solid #C98B55; position: relative; }
.zg-shop__counter::after { content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 12px; background: #A66B3A; border-radius: 0 0 10px 10px; }
.zg-shop__seller { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.zg-shop__owl { width: clamp(110px, 16vw, 210px); margin-left: clamp(0px, 2vw, 30px); animation: zg-bob 3s ease-in-out infinite; }
.zg-shop__say { order: -1; margin: 0; max-width: 30ch; background: #fff; border: 2px solid var(--c-ink); border-radius: 20px 20px 20px 6px; padding: 10px 16px; font-weight: 800; font-size: clamp(1rem, .9rem + .45vw, 1.3rem); line-height: 1.3; box-shadow: 3px 3px 0 var(--c-ink); }
.zg-shop__goods { display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; }
.zg-shop__item { width: clamp(120px, 17vw, 230px); aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 8px 0 rgba(27, 42, 74, .12)); }
.zg-shop__tag { position: absolute; top: -6px; right: -4px; transform: rotate(6deg); background: #FFF6D8; border: 2px solid var(--c-ink); border-radius: 10px 10px 10px 22px; padding: 6px 14px 6px 18px; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem); box-shadow: 3px 3px 0 var(--c-ink); white-space: nowrap; }
.zg-shop__paid { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--c-ink); border-radius: 14px; padding: 4px 10px; font-weight: 800; }
.zg-shop__paidimg { width: 90px; height: auto; display: block; }
.zg-shop__dish { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.zg-shop__plate { width: 100%; min-height: clamp(96px, 16vh, 150px); display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 4px; padding: 12px 18px 22px; background: radial-gradient(ellipse at 50% 30%, #fff 0 55%, #EEF2FB 100%); border: 3px solid var(--c-ink); border-top-width: 6px; border-radius: 30px 30px 50% 50% / 30px 30px 70% 70%; box-shadow: 4px 4px 0 var(--c-ink); }
.zg-shop__sum { margin: 0; font-weight: 800; font-size: clamp(1.05rem, .95rem + .5vw, 1.4rem); background: rgba(255, 255, 255, .92); border-radius: 99px; padding: 4px 16px; border: 2px solid var(--c-ink); }
.zg-shop__tray { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 14px; padding: clamp(10px, 1.6vh, 16px) clamp(12px, 2vw, 22px); background: rgba(255, 255, 255, .94); border: 2px solid var(--c-ink); border-radius: 26px; box-shadow: 4px 4px 0 var(--c-ink); }
.zg-shop__wallet { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(6px, 1vw, 14px); }
.zg-shop__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.zg-shop__pay { min-height: 58px; padding: 0 30px; font-size: 1.2rem; }
.zg-money { display: inline-grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; transition: transform .15s; }
.zg-money svg { display: block; width: 100%; height: auto; }
.zg-money:hover { transform: translateY(-4px); }
.zg-money:active { transform: scale(.92); }
.zg-money:focus-visible { outline: 3px solid #2F5BEA; outline-offset: 3px; }
.zg-money--coin { width: clamp(56px, 6.4vw, 84px); }
.zg-money--v1, .zg-money--v2, .zg-money--v5 { width: clamp(44px, 5vw, 64px); }
.zg-money--v10 { width: clamp(48px, 5.4vw, 70px); }
.zg-money--v20 { width: clamp(52px, 5.8vw, 76px); }
.zg-money--bill { width: clamp(100px, 11vw, 150px); border-radius: 10px; }
.zg-money--in.zg-money--coin { width: clamp(40px, 4.4vw, 58px); }
.zg-money--in.zg-money--bill { width: clamp(78px, 8vw, 110px); }
.zg-money--in { animation: zg-pop .25s var(--ease) both; }
.zg-shop.is-paid .zg-shop__plate { background: #CFF3E2; }
.zg-shop.is-paid .zg-money--in { animation: zg-jump .5s var(--ease); }
.is-calm .zg-shop__owl, .is-calm .zg-money--in, .is-calm .zg-shop.is-paid .zg-money--in { animation: none; }
.is-calm .zg-money:hover { transform: none; }
@media (max-width: 760px) {
  .zg-shop__counter { grid-template-columns: 1fr 1fr; }
  .zg-shop__seller { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .zg-shop__say { order: 0; }
  .zg-shop__owl { width: 80px; margin: 0; }
  .zg-shop__tray { justify-content: center; }
}

/* Tabuľa otázok pre tímy */
.zg-tb--0 { --tb: #2F5BEA; --tb-soft: #DCE6FF; }
.zg-tb--1 { --tb: #E0A100; --tb-soft: #FFF1C7; }
.zg-tb--2 { --tb: #1F9A5F; --tb-soft: #D3F3E2; }
.zg-tb--3 { --tb: #E0533D; --tb-soft: #FFE0DA; }
.zg-play--tabula { max-width: 1400px; }
.zg-tb-setup { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.zg-tb-count { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: clamp(120px, 14vw, 180px); }
.zg-tb-count .zg-txt { font-size: clamp(1.2rem, 1rem + .8vw, 1.7rem); }
.zg-tb-dots { display: flex; gap: 6px; }
.zg-tb-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--tb); border: 2px solid var(--c-ink); }
.zg-tb { width: 100%; height: 100%; display: flex; flex-direction: column; gap: clamp(8px, 1.6vh, 16px); }
.zg-tb-teams { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.zg-tb-team { display: flex; align-items: center; gap: 12px; padding: 6px 8px 6px 16px; border-radius: 99px; background: #fff; border: 3px solid transparent; box-shadow: 0 4px 0 rgba(27, 42, 74, .15); font-weight: 800; color: #1B2A4A; transition: transform .2s; }
.zg-tb-team__score { min-width: 54px; text-align: center; padding: 4px 12px; border-radius: 99px; background: var(--tb); color: #fff; font-family: var(--f-display); font-size: 1.4rem; }
.zg-tb-team.is-turn { border-color: var(--tb); border-width: 4px; transform: scale(1.1); box-shadow: 0 0 0 5px rgba(255, 255, 255, .85), 0 6px 0 rgba(27, 42, 74, .2); }
.zg-tb-team.is-wait { opacity: .5; transform: scale(.94); }
.zg-tb-turn { flex-basis: 100%; margin: 2px auto 0; max-width: max-content; padding: 8px 22px; border-radius: 99px; background: var(--tb); color: #fff; border: 2px solid var(--c-ink); box-shadow: 3px 3px 0 var(--c-ink); font-weight: 800; font-size: clamp(1.05rem, .9rem + .7vw, 1.55rem); text-align: center; animation: zg-pop .35s var(--ease) both; }
.zg-tb-turn strong { text-transform: uppercase; letter-spacing: .03em; }
.zg-tb-turn span { display: inline-block; animation: zg-nudge 1s ease-in-out infinite; }
.zg-tb-grid[class*="zg-tb--"] { padding: 8px; border-radius: 22px; outline: 5px solid var(--tb); outline-offset: -1px; background: rgba(255, 255, 255, .18); }
.zg-tb-card__who { margin: 0; padding: 8px 24px; border-radius: 99px; background: var(--tb); color: #fff; font-weight: 800; font-size: clamp(1.1rem, .95rem + .7vw, 1.6rem); border: 2px solid var(--c-ink); }
.zg-tb-card__who strong { text-transform: uppercase; letter-spacing: .03em; }
.zg-tb-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); grid-template-rows: auto repeat(5, minmax(0, 1fr)); gap: clamp(6px, 1vw, 12px); }
.zg-tb-cat { display: grid; place-items: center; text-align: center; padding: 8px 6px; min-height: 58px; background: #1B2A4A; color: #fff; border-radius: 16px; font-weight: 800; font-size: clamp(.82rem, .7rem + .45vw, 1.1rem); line-height: 1.2; }
.zg-tb-tile { display: grid; place-items: center; min-height: 52px; border-radius: 18px; border: 2px solid var(--c-ink); background: linear-gradient(180deg, #FFD95C, #FFC21F); box-shadow: 4px 4px 0 var(--c-ink); font-family: var(--f-display); font-weight: 700; font-size: clamp(1.5rem, 1.1rem + 1.8vw, 3rem); color: var(--c-ink); cursor: pointer; transition: transform .15s; }
.zg-tb-tile:hover:not(:disabled) { transform: translate(-2px, -2px); }
.zg-tb-tile:focus-visible { outline: 4px solid #2F5BEA; outline-offset: 3px; }
.zg-tb-tile.is-used { background: rgba(255, 255, 255, .55); color: transparent; box-shadow: none; border-style: dashed; border-color: rgba(27, 42, 74, .3); cursor: default; }
.zg-tb-tile.is-won { background: var(--tb-soft); border: 3px solid var(--tb); border-style: solid; }
.zg-tb-tile.is-won::after { content: "✓"; color: var(--tb); font-size: clamp(1.3rem, 1rem + 1.4vw, 2.4rem); }
.zg-tb-tile.is-used { font-size: 0; }
.zg-tb-end { align-self: center; }
.zg-tb-q { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: clamp(12px, 3vw, 40px); background: rgba(14, 23, 48, .45); backdrop-filter: blur(3px); animation: zg-pop .25s var(--ease) both; }
.zg-tb-card { width: min(980px, 100%); max-height: 100%; overflow: auto; background: #fff; border: 3px solid var(--c-ink); border-top: 12px solid var(--tb); border-radius: 30px; box-shadow: 6px 6px 0 var(--c-ink); padding: clamp(18px, 3vw, 40px); display: flex; flex-direction: column; align-items: center; gap: clamp(14px, 2.4vh, 26px); text-align: center; color: #1B2A4A; }
.zg-tb-card__meta { margin: 0; font-weight: 800; color: var(--tb); text-transform: uppercase; letter-spacing: .08em; font-size: .95rem; }
.zg-tb-card__q { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.8rem); line-height: 1.2; }
.zg-tb-card__a { margin: 0; font-size: clamp(1.3rem, 1rem + 1.2vw, 2.2rem); padding: 10px 24px; background: #CFF3E2; border-radius: 18px; }
.zg-tb-opts .zg-opt { font-size: clamp(1.1rem, .9rem + .9vw, 1.7rem); min-height: 70px; }
.zg-tb-card__foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.zg-tb-card__foot .btn { min-height: 58px; padding: 0 30px; font-size: 1.15rem; }
.zg-teams--end .zg-team[class*="zg-tb--"] .zg-team__score { background: var(--tb); }
.is-calm .zg-tb-q, .is-calm .zg-tb-team { animation: none; transition: none; }
@media (max-width: 760px) {
  .zg-tb-grid { gap: 4px; }
  .zg-tb-cat { font-size: .7rem; min-height: 44px; border-radius: 10px; padding: 4px; }
  .zg-tb-tile { border-radius: 10px; box-shadow: 2px 2px 0 var(--c-ink); font-size: 1.2rem; min-height: 40px; }
}
.zg-shop__tag--pic { display: flex; flex-direction: column; align-items: center; gap: 6px; top: -30px; }
.zg-shop__tagcoins { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; max-width: 220px; }
.zg-shop__tagcoin { display: inline-block; width: clamp(40px, 4.4vw, 58px); }
.zg-shop__tagcoin.zg-money--bill { width: clamp(70px, 7vw, 96px); }
.zg-shop__tagcoin svg { display: block; width: 100%; height: auto; }
.zg-shop--pic .zg-shop__tagcoin { width: clamp(58px, 6.4vw, 84px); }
.zg-shop--pic .zg-shop__wallet .zg-money--coin { width: clamp(84px, 9.5vw, 124px); }
.zg-shop--pic .zg-money--in.zg-money--coin { width: clamp(60px, 6.6vw, 86px); }
.zg-shop__tag--pic { position: static; order: -1; transform: rotate(-2deg); }
.zg-shop--pic .zg-shop__item { width: clamp(100px, 13vw, 180px); }

/* Úniková hra */
.zg-play--unik { max-width: 1400px; gap: 0; }
.zg-esc-intro { width: min(760px, 100%); background: #fff; border: 2px solid var(--c-ink); border-radius: 30px; box-shadow: 6px 6px 0 var(--c-ink); padding: clamp(20px, 3.4vw, 42px); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; color: #1B2A4A; animation: zg-pop .4s var(--ease) both; }
.zg-esc-intro__kicker { margin: 0; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #8A4FD8; }
.zg-esc-intro__story { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.25rem, 1rem + 1vw, 1.9rem); line-height: 1.3; }
.zg-esc-intro__how { margin: 4px 0 6px; padding: 0; list-style: none; counter-reset: esc; display: grid; gap: 8px; text-align: left; }
.zg-esc-intro__how li { counter-increment: esc; display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: clamp(1rem, .92rem + .3vw, 1.2rem); }
.zg-esc-intro__how li::before { content: counter(esc); flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #F2B705; border: 2px solid var(--c-ink); font-weight: 800; }
.zg-esc { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(8px, 1.4vh, 14px); }
.zg-esc__scene { position: relative; width: min(100%, calc((100dvh - 210px) * 16 / 9)); aspect-ratio: 16 / 9; border: 3px solid var(--c-ink); border-radius: 26px; overflow: hidden; box-shadow: 6px 6px 0 var(--c-ink); background: #DCE6FF; container-type: inline-size; }
.zg-esc__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zg-esc__spot, .zg-esc__lock { position: absolute; transform: translate(-50%, -50%); width: var(--w, 13%); aspect-ratio: 1; padding: 6%; border: 0; border-radius: 50%; cursor: pointer; background: radial-gradient(circle, rgba(255, 255, 255, .85) 0 45%, rgba(255, 255, 255, 0) 70%); display: grid; place-items: center; z-index: 2; transition: transform .2s; }
.zg-esc__spot::before, .zg-esc__lock::before { content: ""; position: absolute; inset: 4%; border-radius: 50%; border: 3px dashed rgba(255, 255, 255, .95); box-shadow: 0 0 0 4px rgba(242, 183, 5, .55), 0 0 26px rgba(255, 230, 120, .9); animation: zg-esc-glow 1.8s ease-in-out infinite; }
.zg-esc__spot img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; filter: drop-shadow(0 4px 0 rgba(27, 42, 74, .25)); }
.zg-esc__spot:hover, .zg-esc__lock:hover { transform: translate(-50%, -50%) scale(1.08); }
.zg-esc__spot:focus-visible, .zg-esc__lock:focus-visible { outline: 4px solid #2F5BEA; outline-offset: 2px; }
.zg-esc__spot--mark { width: var(--w, 9%); background: rgba(255, 255, 255, .25); }
.zg-esc__q { position: relative; font-family: var(--f-display); font-weight: 700; font-size: 4cqw; color: #fff; text-shadow: 0 2px 0 #1B2A4A, 0 0 8px #1B2A4A; }
.zg-esc__spot.is-done::before { animation: none; border-style: solid; border-color: #1F9A5F; box-shadow: none; }
.zg-esc__spot.is-done img { opacity: .55; }
.zg-esc__badge { position: absolute; right: -4%; top: -4%; width: 38%; padding: 6%; border-radius: 50%; background: #fff; border: 2px solid var(--c-ink); }
.zg-esc__badge .zg-esc-sym { width: 100%; height: 100%; }
.zg-esc__lock { width: 9%; padding: 1.4%; background: rgba(255, 255, 255, .7); border: 3px solid var(--c-ink); }
.zg-esc__lock::before { display: none; }
.zg-esc__lock svg { position: absolute; inset: 14%; width: 72%; height: 72%; }
.zg-esc__lock.is-ready { background: #FFF1C7; animation: zg-esc-bump 1.2s ease-in-out infinite; }
.zg-esc__lock.is-ready::before { display: block; }
.zg-esc__hunt { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.zg-esc__scene.is-hunting .zg-esc__spot, .zg-esc__scene.is-hunting .zg-esc__lock { opacity: .35; pointer-events: none; }
.zg-esc__item { position: absolute; transform: translate(-50%, -50%) rotate(var(--r, 0deg)); width: 7.5%; aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; border-radius: 50%; transition: transform .2s; }
.zg-esc__item img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 0 rgba(27, 42, 74, .3)); }
.zg-esc__item:hover { transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(1.15); }
.zg-esc__item.is-found { cursor: default; background: rgba(31, 154, 95, .35); box-shadow: 0 0 0 4px #1F9A5F; transform: translate(-50%, -50%) scale(1.05); }
.zg-esc__huntbar { position: absolute; left: 50%; top: 3%; transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: 12px; max-width: 94%; padding: 8px 10px 8px 18px; background: #fff; border: 2px solid var(--c-ink); border-radius: 99px; box-shadow: 3px 3px 0 var(--c-ink); font-weight: 800; font-size: clamp(.95rem, .85rem + .5vw, 1.3rem); color: #1B2A4A; }
.zg-esc__bag { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding: 8px 16px; background: rgba(255, 255, 255, .94); border: 2px solid var(--c-ink); border-radius: 99px; box-shadow: 3px 3px 0 var(--c-ink); color: #1B2A4A; }
.zg-esc__bagtitle { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; margin-right: 4px; }
.zg-esc__clue { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 6px; border-radius: 99px; background: #EEF1F8; border: 2px dashed rgba(27, 42, 74, .3); }
.zg-esc__clue b { font-family: var(--f-display); font-size: 1.5rem; line-height: 1; min-width: 1ch; text-align: center; color: #9AA3B8; }
.zg-esc__clue.is-found { background: #fff; border: 2px solid var(--c-ink); }
.zg-esc__clue.is-found b { color: #1B2A4A; }
.zg-esc-sym { width: 30px; height: 30px; display: block; }
.zg-esc-q { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: clamp(10px, 2.4vw, 32px); background: rgba(14, 23, 48, .42); backdrop-filter: blur(2px); animation: zg-pop .25s var(--ease) both; }
.zg-esc-q--low { align-items: end; }
.zg-esc-card { position: relative; width: min(940px, 100%); max-height: 100%; overflow: auto; background: #fff; border: 3px solid var(--c-ink); border-radius: 28px; box-shadow: 6px 6px 0 var(--c-ink); padding: clamp(16px, 2.6vw, 34px); display: flex; flex-direction: column; align-items: center; gap: clamp(12px, 2vh, 22px); text-align: center; color: #1B2A4A; }
.zg-esc-card__head { display: flex; align-items: center; gap: 12px; }
.zg-esc-card__img { width: 64px; height: 64px; object-fit: contain; }
.zg-esc-card__meta { margin: 0; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #8A4FD8; }
.zg-esc-card__q { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.3rem, 1rem + 1.3vw, 2.3rem); line-height: 1.25; }
.zg-esc-card__x { position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--c-ink); background: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--c-ink); }
.zg-esc-card__body { width: 100%; display: flex; justify-content: center; }
.zg-esc-card .zg-opt { font-size: clamp(1.05rem, .9rem + .8vw, 1.6rem); min-height: 68px; }
.zg-esc-card .zg-opts--pics .zg-opt img { width: clamp(80px, 11vw, 150px); height: clamp(80px, 11vw, 150px); object-fit: contain; display: block; margin: 0 auto 6px; }
.zg-esc-order .zg-opt { position: relative; }
.zg-esc-order .zg-opt img, .zg-esc-pairs .zg-opt img { width: clamp(60px, 8vw, 110px); height: clamp(60px, 8vw, 110px); object-fit: contain; display: block; margin: 0 auto 4px; }
.zg-esc-order__n { position: absolute; top: -12px; left: -12px; width: 34px; height: 34px; border-radius: 50%; background: #1F9A5F; color: #fff; border: 2px solid var(--c-ink); display: grid; place-items: center; font-size: 1.1rem; }
.zg-esc-pairs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 4vw, 60px); width: 100%; max-width: 760px; }
.zg-esc-pairs__col { display: flex; flex-direction: column; gap: 10px; }
.zg-esc-pairs .zg-opt { width: 100%; min-height: 58px; }
.zg-esc-pairs .zg-opt.is-selected { background: #FFF1C7; outline: 4px solid #F2B705; }
.zg-esc-pair--0.is-right { background: #DCE6FF; } .zg-esc-pair--1.is-right { background: #D3F3E2; } .zg-esc-pair--2.is-right { background: #FFF1C7; } .zg-esc-pair--3.is-right { background: #FFE0DA; } .zg-esc-pair--4.is-right { background: #EADCFB; }
.zg-esc-pad { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; width: min(560px, 100%); }
.zg-esc-pad .zg-esc-pad__key { min-width: 0; min-height: clamp(58px, 9vh, 84px); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); padding: 0; }
.zg-esc-reward { display: flex; align-items: center; gap: 18px; padding: 10px 26px; border-radius: 26px; background: #FFF8DE; border: 3px solid var(--c-ink); animation: zg-jump .6s var(--ease); }
.zg-esc-reward .zg-esc-sym { width: clamp(60px, 8vw, 96px); height: clamp(60px, 8vw, 96px); }
.zg-esc-reward__n { font-family: var(--f-display); font-weight: 700; font-size: clamp(3.4rem, 2.4rem + 4vw, 6rem); line-height: 1; }
.zg-esc-wheels { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(10px, 2vw, 24px); padding: 16px clamp(12px, 2vw, 26px); background: #3A4566; border-radius: 24px; border: 3px solid var(--c-ink); }
.zg-esc-wheel { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.zg-esc-wheel .zg-esc-sym { width: 40px; height: 40px; background: #fff; border-radius: 10px; padding: 4px; }
.zg-esc-wheel__btn { width: clamp(56px, 7vw, 76px); height: 44px; border-radius: 12px; border: 2px solid var(--c-ink); background: #fff; font-size: 1.2rem; cursor: pointer; color: var(--c-ink); }
.zg-esc-wheel__btn:active { transform: translateY(2px); }
.zg-esc-wheel__n { width: clamp(56px, 7vw, 76px); height: clamp(70px, 10vh, 96px); display: grid; place-items: center; border-radius: 12px; background: linear-gradient(180deg, #E8ECF6, #fff 30%, #fff 70%, #E8ECF6); border: 2px solid var(--c-ink); font-family: var(--f-display); font-weight: 700; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); color: #1B2A4A; }
.zg-esc-wheel__n.is-roll { animation: zg-esc-roll .2s ease-out; }
.zg-esc-wheels.is-wrong { animation: zg-shake .4s; }
.zg-esc-card--lock.is-open .zg-esc-wheels { background: #1F9A5F; }
.zg-esc__bag--mini { box-shadow: none; }
.zg-esc-open { min-height: 60px; padding: 0 34px; font-size: 1.25rem; }
.zg-esc-door { width: 120px; height: 150px; border: 4px solid var(--c-ink); border-radius: 60px 60px 6px 6px; background: linear-gradient(180deg, #FFF5C2, #FFE07A); overflow: hidden; perspective: 400px; }
.zg-esc-door span { display: block; width: 100%; height: 100%; background: #B97C48; border-right: 4px solid var(--c-ink); transform-origin: left center; animation: zg-esc-door 1.2s .3s var(--ease) forwards; }
@keyframes zg-esc-glow { 0%, 100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes zg-esc-bump { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.1); } }
@keyframes zg-esc-roll { from { transform: translateY(-10px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes zg-esc-door { to { transform: rotateY(-75deg); } }
.zg--teen .zg-esc-intro, .zg--teen .zg-esc-card { border-color: transparent; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.zg--teen .zg-esc__scene { border-color: rgba(255, 255, 255, .25); box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.is-calm .zg-esc__spot::before, .is-calm .zg-esc__lock.is-ready, .is-calm .zg-esc-reward, .is-calm .zg-esc-door span, .is-calm .zg-esc-wheel__n.is-roll { animation: none; }
.is-calm .zg-esc-door span { transform: rotateY(-75deg); }
@media (max-width: 760px) {
  .zg-esc__scene { border-radius: 14px; border-width: 2px; box-shadow: 3px 3px 0 var(--c-ink); }
  .zg-esc__spot::before { border-width: 2px; }
  .zg-esc-sym { width: 24px; height: 24px; }
  .zg-esc__clue b { font-size: 1.2rem; }
  .zg-esc-pad { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
}
@media (max-width: 760px) {
  .zg-esc__bag { border-radius: 18px; gap: 6px; padding: 6px 10px; }
  .zg-esc__bagtitle { display: none; }
}

/* Objavujem násobilku */
.zg-play--objav { max-width: 1100px; }
.zg-ob { width: 100%; max-height: 100%; overflow: auto; background: #fff; border: 2px solid var(--c-ink); border-radius: 30px; box-shadow: 6px 6px 0 var(--c-ink); padding: clamp(16px, 2.6vw, 34px); display: flex; flex-direction: column; align-items: center; gap: clamp(10px, 1.8vh, 20px); text-align: center; color: #1B2A4A; animation: zg-pop .35s var(--ease) both; }
.zg-ob__title { margin: 0; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #8A4FD8; }
.zg-ob__text { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.2rem, 1rem + 1vw, 1.9rem); line-height: 1.3; max-width: 40ch; }
.zg-ob__stage { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.zg-ob__foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; min-height: 64px; }
.zg-ob__next { min-height: 60px; padding: 0 36px; font-size: 1.2rem; }
.zg-ob__pic { width: clamp(28px, 3.6vw, 48px); height: clamp(28px, 3.6vw, 48px); object-fit: contain; }
.zg-ob__big { width: clamp(110px, 15vw, 180px); height: auto; }
.zg-ob__baskets { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.zg-ob__basket { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 4px; width: clamp(110px, 14vw, 170px); min-height: 90px; padding: 12px; border: 3px solid #B97C48; border-top-width: 8px; border-radius: 10px 10px 40px 40px; background: #FFF3DC; }
.zg-ob__grid { display: flex; flex-direction: column; gap: 6px; }
.zg-ob__row { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border: 2px dashed rgba(27, 42, 74, .25); border-radius: 16px; background: rgba(255, 255, 255, .7); font: inherit; color: inherit; }
button.zg-ob__row { cursor: pointer; }
button.zg-ob__row:hover { border-color: #2F5BEA; }
.zg-ob__row.is-on { border: 2px solid #1F9A5F; background: #D3F3E2; }
.zg-ob__sum { min-width: 2.4ch; margin-left: 8px; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.2rem, 1rem + 1vw, 1.8rem); color: #1F9A5F; text-align: left; }
.zg-ob__swap { transition: transform .55s var(--ease); }
.zg-ob__swap.is-turn { transform: rotate(90deg) scale(.8); }
.zg-ob__eq { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.2rem, 1rem + 1vw, 1.8rem); }
.zg-ob__eq.is-main { font-size: clamp(1.8rem, 1.3rem + 2.2vw, 3.2rem); padding: 4px 24px; border-radius: 18px; background: #FFF1C7; border: 2px solid var(--c-ink); }
.zg-ob__rule { margin: 0; padding: 12px 22px; border-radius: 20px; background: #EADCFB; border: 2px solid var(--c-ink); font-weight: 800; font-size: clamp(1.05rem, .95rem + .6vw, 1.45rem); max-width: 46ch; }
.zg-ob__task { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.zg-ob__how { margin: 0; font-weight: 700; color: #1F9A5F; font-size: clamp(1rem, .9rem + .5vw, 1.3rem); }
.zg-ob__blocks { display: flex; align-items: flex-end; justify-content: center; gap: 18px; flex-wrap: wrap; }
.zg-ob__part { display: flex; align-items: flex-end; gap: 5px; padding: 12px 12px 34px; border-radius: 16px; border: 3px solid transparent; position: relative; transition: border-color .2s, background-color .2s; }
.zg-ob__part.is-active { border-color: #F2B705; background: #FFF8DE; }
.zg-ob__rod { display: flex; flex-direction: column; gap: 2px; padding: 3px; background: #2F5BEA; border: 2px solid var(--c-ink); border-radius: 6px; }
.zg-ob__rod i { width: clamp(14px, 1.6vw, 20px); height: clamp(9px, 1.1vw, 13px); background: #8FB0FF; border-radius: 2px; }
.zg-ob__cube { width: clamp(18px, 2vw, 24px); height: clamp(18px, 2vw, 24px); background: #F2B705; border: 2px solid var(--c-ink); border-radius: 4px; }
.zg-ob__lbl { position: absolute; left: 0; right: 0; bottom: 4px; font-weight: 800; font-size: 1.1rem; }
.zg-ob__plus { font-family: var(--f-display); font-size: 2.4rem; font-weight: 700; padding-bottom: 30px; }
.zg-ob__lines { display: flex; flex-direction: column; gap: 4px; }
.is-calm .zg-ob, .is-calm .zg-ob__swap { animation: none; transition: none; }

/* Násobilkové bubliny */
.zg-play--bubliny { justify-content: flex-start; }
.zg-bub__eq { margin: 0; }
.zg-bub { position: relative; flex: 1; width: 100%; min-height: 300px; overflow: hidden; border-radius: 28px; background: linear-gradient(180deg, rgba(220, 238, 255, .5), rgba(170, 210, 250, .55)); border: 2px solid rgba(27, 42, 74, .2); }
.zg-bub__b { position: absolute; bottom: -24%; transform: translateX(-50%); width: clamp(84px, 11vw, 132px); aspect-ratio: 1; border-radius: 50%; padding: 0; cursor: pointer; border: 3px solid rgba(255, 255, 255, .95); background: radial-gradient(circle at 32% 28%, #fff 0 12%, var(--bc, #8FC7FF) 45%, var(--bd, #4C8DE8) 100%); box-shadow: inset -6px -8px 14px rgba(0, 0, 0, .12), 0 6px 14px rgba(27, 42, 74, .15); color: #1B2A4A; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.5rem); animation: zg-bub-up var(--dur, 9s) linear var(--dl, 0s) infinite; }
.zg-bub__b span { text-shadow: 0 2px 0 rgba(255, 255, 255, .8); }
.zg-bub__b--1 { --bc: #FFD27A; --bd: #F2A900; } .zg-bub__b--2 { --bc: #9FE3BF; --bd: #2FB475; } .zg-bub__b--3 { --bc: #FFB3A8; --bd: #E5604C; } .zg-bub__b--4 { --bc: #D4B8FF; --bd: #8A4FD8; }
.zg-bub__b:focus-visible { outline: 4px solid #1B2A4A; outline-offset: 3px; }
.zg-bub__b.is-pop { animation-play-state: paused; }
.zg-bub__b.is-wrong { opacity: .25; filter: grayscale(1); }
.zg-bub__b.is-right { --bc: #CFF3E2; --bd: #1F9A5F; transform: translateX(-50%) scale(1.25); transition: transform .25s; }
@keyframes zg-bub-up { from { bottom: -24%; } to { bottom: 104%; } }
.is-calm .zg-bub__b { animation: none; bottom: 30%; }

/* Tabuľka násobilky */
.zg-play--tabulka { max-width: 1300px; }
.zg-tab { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; gap: clamp(12px, 2.4vw, 34px); }
.zg-tab__grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 3px; width: min(100%, calc(100dvh - 160px)); max-width: 680px; padding: 8px; background: #fff; border: 2px solid var(--c-ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--c-ink); }
.zg-tab__grid > * { aspect-ratio: 1; display: grid; place-items: center; border-radius: 6px; font-weight: 800; font-size: clamp(.7rem, .5rem + .8vw, 1.15rem); color: #1B2A4A; }
.zg-tab__corner { background: #1B2A4A; color: #fff !important; }
.zg-tab__head { background: #DCE6FF; }
.zg-tab__head.is-line { background: #2F5BEA; color: #fff; }
.zg-tab__cell { background: #F4F6FC; color: #7A86A3 !important; }
.zg-tab__cell.is-line { background: #FFF1C7; color: #1B2A4A !important; }
.zg-tab__cell.is-gap { border: 2px solid #F2B705; background: #FFF8DE; color: #1B2A4A !important; cursor: pointer; padding: 0; font: inherit; font-weight: 800; animation: zg-esc-glow 1.8s ease-in-out infinite; }
.zg-tab__cell.is-cur { background: #F2B705; animation: none; }
.zg-tab__cell.is-done { background: #CFF3E2; color: #1B2A4A !important; border: 2px solid #1F9A5F; }
.zg-tab__panel { flex: 0 1 380px; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px; background: rgba(255, 255, 255, .92); border: 2px solid var(--c-ink); border-radius: 24px; box-shadow: 4px 4px 0 var(--c-ink); }
.zg-tab__say { margin: 0; font-weight: 800; font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); text-align: center; }
.zg-tab__panel .zg-opts { gap: 10px; }
.zg-tab__panel .zg-opt { min-width: 84px; }
.is-calm .zg-tab__cell.is-gap { animation: none; }
@media (max-width: 860px) {
  .zg-tab { flex-direction: column; }
  .zg-tab__grid { width: 100%; }
  .zg-tab__panel { flex: none; width: 100%; }
}
.zg-tab--explore { align-items: flex-start; }
.zg-tab__left { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; }
.zg-tab--explore .zg-tab__grid { width: min(100%, calc(100dvh - 210px)); max-width: 720px; }
.zg-tab__bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.zg-tab__seg { display: inline-flex; padding: 3px; border-radius: 99px; background: #fff; border: 2px solid var(--c-ink); }
.zg-tab__segb { min-height: 40px; padding: 0 16px; border: 0; border-radius: 99px; background: none; font: inherit; font-weight: 800; color: var(--c-ink); cursor: pointer; }
.zg-tab__segb.is-on { background: var(--c-green); color: #fff; }
.zg-tab__cell--x { border: 0; padding: 0; font: inherit; font-weight: 800; cursor: pointer; background: #F4F6FC; color: #1B2A4A !important; }
.zg-tab__cell--x:hover { background: #DCE6FF; }
.zg-tab__cell--x.is-line { background: #FFF1C7; }
.zg-tab__cell--x.is-cur { background: #F2B705; outline: 3px solid var(--c-ink); outline-offset: -3px; }
.zg-tab__grid.is-hidden .zg-tab__cell--x span { visibility: hidden; }
.zg-tab__grid.is-hidden .zg-tab__cell--x.is-cur span, .zg-tab__grid.is-hidden .zg-tab__cell--x.is-seen span { visibility: visible; }
.zg-tab__info { align-items: stretch; text-align: left; flex: 0 1 400px; }
.zg-tab__infobox { display: flex; flex-direction: column; gap: 10px; }
.zg-tab__kind { margin: 0; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #1F9A5F; font-size: .9rem; }
.zg-tab__big { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); line-height: 1; color: #1B2A4A; }
.zg-tab__line { margin: 0; font-weight: 700; font-size: clamp(1rem, .9rem + .4vw, 1.25rem); }
.zg-tab__dots { display: flex; flex-wrap: wrap; gap: 6px; }
.zg-tab__grp { display: flex; flex-wrap: wrap; gap: 3px; max-width: 78px; padding: 5px; border-radius: 10px; background: #FFF3DC; border: 2px solid #E8C99A; }
.zg-tab__grp i { width: 11px; height: 11px; border-radius: 50%; background: #E5543F; }
.zg-tab__help { margin: 0; padding: 10px 14px; border-left: 4px solid #1F9A5F; background: #E8F7EF; border-radius: 0 12px 12px 0; font-size: clamp(.95rem, .88rem + .3vw, 1.15rem); }
.zg-tab__fin { align-self: center; margin-top: 6px; }
.zg-memory--big .zg-card--text .zg-face-text, .zg-memory--big .zg-face-text { font-size: clamp(1.3rem, 22cqi, 3rem); white-space: nowrap; }

/* Uhly v stupňoch a minútach, vysvetlenie po odpovedi */
.zg-opts--uhly .zg-opt { min-width: clamp(130px, 15vw, 200px); white-space: nowrap; }
.zg-equation--uhly { white-space: nowrap; }
.zg-explain { width: min(760px, 100%); margin-top: 6px; padding: 14px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; background: #fff; color: #1B2A4A; border: 2px solid #1F9A5F; border-left-width: 8px; border-radius: 18px; animation: zg-pop .3s var(--ease) both; }
.zg-explain p { margin: 0; font-weight: 700; font-size: clamp(1rem, .92rem + .4vw, 1.25rem); line-height: 1.4; }
.zg-explain .zg-explain__t { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: #1F9A5F; }
.is-calm .zg-explain { animation: none; }
.zg-prem { gap: clamp(12px, 2vh, 22px); }
.zg-prem__eq { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.zg-prem__slot { display: inline-flex; align-items: center; gap: 4px; }
.zg-prem__f { min-width: 2.6em; height: 1.35em; padding: 0 .2em; border: 3px dashed #9AA3B8; border-radius: 14px; background: #F4F6FC; font: inherit; color: #1B2A4A; cursor: pointer; text-align: center; }
.zg-prem__f.is-cur { border-style: solid; border-color: #2F5BEA; background: #fff; box-shadow: 0 0 0 4px rgba(47, 91, 234, .2); }
.zg-prem__eq.is-right .zg-prem__f { border: 3px solid #1F9A5F; background: #CFF3E2; }
.zg-prem__eq.is-wrong { animation: zg-shake .4s; }
.zg-prem__pad { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; width: min(560px, 100%); }
.zg-prem__key { min-width: 0 !important; min-height: clamp(54px, 8vh, 72px) !important; padding: 0 !important; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem) !important; }
.zg-prem__ok { min-height: 58px; padding: 0 36px; font-size: 1.2rem; }
.zg-prem__eq { padding-right: 1.1em; padding-left: 1em; }
.zg-prem__helpb { min-height: 46px; }
.zg-prem__help { width: min(820px, 100%); padding: 16px 20px; background: #fff; color: #1B2A4A; border: 2px solid #F2B705; border-left-width: 8px; border-radius: 18px; text-align: left; }
.zg-prem__steps { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 8px; font-size: clamp(1rem, .92rem + .35vw, 1.2rem); line-height: 1.4; }
.zg-prem__tt { margin: 14px 0 6px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: #8A5A00; }
.zg-prem__table { display: flex; flex-wrap: wrap; gap: 6px; }
.zg-prem__table span { display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 4px 8px; border-radius: 10px; background: #FFF8DE; border: 1px solid #E8C99A; }
.zg-prem__table b { font-size: 1.05rem; }
.zg-prem__table i { font-style: normal; font-size: .85rem; color: #5B6785; }
@media (min-width: 1000px) {
  .zg-prem.is-help { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); column-gap: 28px; align-items: center; justify-items: center; max-width: 1240px; width: 100%; }
  .zg-prem.is-help > * { grid-column: 1; }
  .zg-prem.is-help > .zg-prem__help { grid-column: 2; grid-row: 1 / span 5; max-height: 100%; overflow: auto; }
}
.zg-prem.is-help .zg-prem__eq { flex-wrap: nowrap; font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); }

/* Farby pri uhloch: stupne modrou, minúty oranžovou, balíček 60 zelenou */
.zg-c-deg { color: #2F5BEA; font-weight: 800; }
.zg-c-min { color: #D9480F; font-weight: 800; }
.zg-prem__f--deg { border-color: #8FB0FF; background: #EEF3FF; }
.zg-prem__f--min { border-color: #FFB38A; background: #FFF3EA; }
.zg-prem__f--deg.is-cur { border-color: #2F5BEA; }
.zg-prem__f--min.is-cur { border-color: #D9480F; box-shadow: 0 0 0 4px rgba(217, 72, 15, .2); }
.zg-chip { display: inline-block; padding: 2px 10px; border-radius: 99px; font-weight: 800; color: #fff; white-space: nowrap; }
.zg-chip--deg { background: #2F5BEA; }
.zg-chip--min { background: #E8590C; }
.zg-chip--sixty { background: #1F9A5F; }
.zg-guide { width: min(560px, 100%); display: flex; flex-direction: column; gap: 10px; }
.zg-guide__dots { display: flex; justify-content: center; gap: 8px; }
.zg-guide__dots i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .35); border: 2px solid #fff; }
.zg-guide__dots i.is-on { background: #F2B705; transform: scale(1.25); }
.zg-guide__dots i.is-past { background: #1F9A5F; }
.zg-guide__card { padding: 16px 18px; border-radius: 22px; background: #fff; color: #1B2A4A; border: 3px solid var(--gc, #F2B705); border-top-width: 12px; text-align: left; animation: zg-pop .3s var(--ease) both; }
.zg-guide__card--deg { --gc: #2F5BEA; } .zg-guide__card--min { --gc: #E8590C; } .zg-guide__card--sixty { --gc: #1F9A5F; } .zg-guide__card--ok { --gc: #8A4FD8; }
.zg-guide__t { margin: 0 0 6px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; color: var(--gc); }
.zg-guide__h { font-weight: 700; font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem); line-height: 1.45; }
.zg-guide__big { margin: 10px 0 2px; text-align: center; font-size: 1.5rem; font-weight: 800; }
.zg-guide__big .zg-chip { font-size: 1.5rem; padding: 4px 16px; }
.zg-guide__packs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.zg-guide__pack { padding: 6px 8px; border-radius: 10px; background: #D3F3E2; border: 2px solid #1F9A5F; font-weight: 800; font-size: .9rem; color: #1F7A4C; }
.zg-guide__more { align-self: center; font-weight: 800; color: #1F7A4C; }
.zg-guide__opts, .zg-guide__mults { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.zg-guide__opt, .zg-guide__mult { min-width: 72px; min-height: 52px; padding: 4px 12px; border-radius: 14px; border: 2px solid var(--c-ink); background: #fff; font: inherit; font-weight: 800; font-size: 1.25rem; color: #1B2A4A; cursor: pointer; box-shadow: 2px 2px 0 var(--c-ink); }
.zg-guide__mult { display: flex; flex-direction: column; align-items: center; line-height: 1.1; background: #EAF8F0; }
.zg-guide__mult i { font-style: normal; font-size: .85rem; color: #2F5BEA; }
.zg-guide__opt.is-wrong, .zg-guide__mult.is-wrong { opacity: .35; animation: zg-shake .4s; }
.zg-guide__opt.is-right, .zg-guide__mult.is-right { background: #CFF3E2; border-color: #1F9A5F; }
.zg-guide__zero { margin: 12px 0 0; font-weight: 700; font-size: 1.15rem; }
.zg-guide__0 { color: #1F9A5F; font-size: 1.3em; text-decoration: underline; }
.zg-guide__bar { display: flex; margin-top: 10px; height: 42px; border-radius: 12px; overflow: hidden; border: 2px solid var(--c-ink); font-weight: 800; }
.zg-guide__barA { flex: 4; display: grid; place-items: center; background: #1F9A5F; color: #fff; }
.zg-guide__barB { flex: 1; display: grid; place-items: center; background: #FFD8C2; color: #D9480F; }
.zg-guide__nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.is-calm .zg-guide__card, .is-calm .zg-guide__opt.is-wrong, .is-calm .zg-guide__mult.is-wrong { animation: none; }
@media (min-width: 1000px) { .zg-prem.is-help > .zg-guide { grid-column: 2; grid-row: 1 / span 5; } }
.zg-nw { white-space: nowrap; }

/* Zápis na papier: štvorčekový papier, čísla pod sebou, stupne modrou a minúty oranžovou */
.zg-paper { display: grid; grid-template-columns: 1.3em auto auto minmax(150px, 230px); column-gap: 8px; row-gap: 2px; align-items: center; margin: 4px auto 0; padding: 12px 16px; width: max-content; max-width: 100%; text-align: left; color: #1B2A4A; background-color: #FFFEF8; background-image: linear-gradient(#DCE6F5 1px, transparent 1px), linear-gradient(90deg, #DCE6F5 1px, transparent 1px); background-size: 22px 22px; border: 1px solid #C9D4EA; border-radius: 6px; box-shadow: 2px 3px 0 rgba(27, 42, 74, .12); font-family: var(--f-display); }
.zg-paper__row { display: contents; }
.zg-paper__op, .zg-paper__n { font-size: clamp(1.3rem, 1rem + 1vw, 1.85rem); font-weight: 700; line-height: 1.3; }
.zg-paper__op { text-align: center; }
.zg-paper__n { text-align: right; padding: 0 2px; }
.zg-paper__n.is-deg { color: #2F5BEA; }
.zg-paper__n.is-min { color: #D9480F; }
.zg-paper__note { font-family: var(--f-text); font-style: normal; font-size: clamp(.8rem, .75rem + .25vw, .95rem); font-weight: 700; color: #5B6785; padding-left: 10px; line-height: 1.25; }
.zg-paper__hr { grid-column: 1 / -1; height: 0; margin: 2px 0; background: linear-gradient(90deg, #1B2A4A var(--hrw, 60%), transparent 0); border-top: 3px solid transparent; border-image: linear-gradient(90deg, #1B2A4A 0 55%, transparent 55%) 1; }
.zg-paper__n:empty { padding: 0; }
.zg-paper__row.is-res .zg-paper__n:not(:empty), .zg-paper__row.is-res .zg-paper__op:not(:empty) { background: #FFF1C7; border-radius: 6px; }
.zg-paper__row.is-alt .zg-paper__n { text-decoration: underline wavy #8A4FD8 2px; text-underline-offset: 5px; }
.zg-paper.is-step .zg-paper__row > *, .zg-paper.is-step .zg-paper__hr { visibility: hidden; }
.zg-paper.is-step .zg-paper__row.is-on > *, .zg-paper.is-step .zg-paper__hr.is-on { visibility: visible; animation: zg-pop .25s var(--ease) both; }
.zg-paper__next { margin-top: 8px; }
.zg-guide__card--paper { --gc: #8A4FD8; }
.zg-explain .zg-paper { margin-bottom: 4px; }
.is-calm .zg-paper.is-step .zg-paper__row.is-on > *, .is-calm .zg-paper.is-step .zg-paper__hr.is-on { animation: none; }
@media (max-width: 600px) { .zg-paper { grid-template-columns: 1.2em auto auto; } .zg-paper__note { grid-column: 1 / -1; padding: 0 0 4px; text-align: right; } }
.zg-paper__row.is-old .zg-paper__n { text-decoration: line-through 3px #8A4FD8; opacity: .6; }
