/* Historinha Interativa do Kikãozinho: estante de capas + tocador (kz-historinhas.js) */
.kzh-intro { display: flex; gap: 18px; align-items: center; margin: 0 0 26px; }
.kzh-intro img { width: 90px; height: auto; flex: none; filter: drop-shadow(0 4px 0 rgba(27, 42, 107, .18)); }
.kzh-intro h2 { font-size: clamp(30px, 5vw, 46px); }
.kzh-intro p { margin: 6px 0 0; font-size: 19px; max-width: 52ch; }
.kzh-filtro { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.kzh-filtro button { display: inline-flex; align-items: center; gap: 8px; border: 4px solid var(--azul); background: #fff; color: var(--azul); border-radius: 99px; padding: 6px 16px; font: 800 17px var(--f-t); cursor: pointer; box-shadow: 0 4px 0 var(--azul); }
.kzh-filtro button img { width: 30px; height: 30px; object-fit: cover; object-position: top; border-radius: 50%; background: #e9f6ff; }
.kzh-filtro button.on { background: var(--sol); }
.kzh-estante { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 26px; }
.kzh-card { background: #fff; border: 5px solid var(--azul); border-radius: 28px; box-shadow: 0 8px 0 var(--azul); overflow: hidden; display: flex; flex-direction: column; animation: kzh-entra .5s calc(var(--i) * .08s) both cubic-bezier(.3, 1.4, .5, 1); }
@keyframes kzh-entra { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.kzh-card__capa { position: relative; display: block; padding: 0; margin: 0; border: 0; background: var(--c); cursor: pointer; aspect-ratio: 3 / 4; overflow: hidden; border-bottom: 5px solid var(--azul); }
.kzh-card__capa img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.kzh-card__capa:hover img, .kzh-card__capa:focus-visible img { transform: scale(1.04); }
.kzh-card__play { position: absolute; right: 14px; top: 58%; width: 76px; height: 76px; margin: 0; border-radius: 50%; background: var(--verm); color: #fff; border: 5px solid #fff; box-shadow: 0 6px 0 var(--azul), 0 0 0 9px rgba(255, 255, 255, .35); display: grid; place-items: center; transition: transform .2s; }
.kzh-card__play .kzh-ico { width: 40px; height: 40px; margin-left: 6px; }
.kzh-card__capa:hover .kzh-card__play { transform: scale(1.1); }
.kzh-card__visto { position: absolute; right: 12px; top: 12px; background: var(--verde); color: #fff; font: 800 15px var(--f-t); padding: 4px 12px; border-radius: 99px; border: 3px solid #fff; }
.kzh-card__tx { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.kzh-card__tx h3 { font-size: 26px; color: var(--azul); }
.kzh-card__tx p { font-size: 16px; margin: 8px 0 0; }
.kzh-card__meta { display: flex; gap: 8px; flex-wrap: wrap; }
.kzh-card__meta span { background: var(--creme); border: 3px solid var(--azul); border-radius: 99px; padding: 1px 10px; font: 800 14px var(--f-t); }
.kzh-card__bts { display: flex; gap: 10px; margin-top: auto !important; padding-top: 14px; }
.kzh-card__bts .kz-bt { flex: 1; justify-content: center; }
.kzh-card__bts .kzh-card__comp { flex: none; padding: 12px 16px; }
.kzh-ico { width: 22px; height: 22px; flex: none; }

/* ---------- tocador ---------- */
.kzh-player { position: fixed; inset: 0; z-index: 9000; display: flex; flex-direction: column; background: radial-gradient(ellipse at 50% 30%, #2a3a8b, #0d1538 70%); color: #fff; font-family: var(--f-c); padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0); }
.kzh-topo { display: flex; align-items: center; gap: 12px; padding: 8px 14px; flex: none; }
.kzh-topo__logo { height: 40px; width: auto; }
.kzh-topo__t { flex: 1; min-width: 0; font: 800 clamp(17px, 2.4vw, 24px) var(--f-t); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--sol); }
.kzh-meio { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 12px; gap: 10px; overflow-y: auto; }
.kzh-palco { position: relative; width: min(100%, calc((100dvh - 150px) * 16 / 9)); aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; border: 4px solid #fff; box-shadow: 0 10px 0 rgba(0, 0, 0, .35), 0 0 0 7px var(--azul); background: #0d1538; flex: none; touch-action: manipulation; }
.kzh-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; }
.kzh-bt { display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; border: 3px solid #fff; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; padding: 0; transition: background .15s, transform .1s; }
.kzh-bt:hover { background: rgba(255, 255, 255, .25); } .kzh-bt:active { transform: scale(.92); }
.kzh-bt--on { background: var(--sol); color: var(--azul); border-color: var(--sol); }
.kzh-bt--x { background: var(--verm); border-color: #fff; }
.kzh-player :focus-visible { outline: 4px solid var(--sol); outline-offset: 3px; }

.kzh-inicio { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; z-index: 3; }
.kzh-inicio p { font: 800 clamp(16px, 2.4vw, 26px) var(--f-t); text-shadow: 0 3px 0 var(--azul); margin: 0; text-align: center; padding: 0 20px; }
.kzh-play { width: clamp(80px, 13vw, 130px); height: clamp(80px, 13vw, 130px); border-radius: 50%; border: 6px solid #fff; background: var(--verm); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 0 var(--azul), 0 0 0 12px rgba(255, 255, 255, .25); animation: kzh-pulsa 1.4s infinite ease-in-out; }
.kzh-play .kzh-ico { width: 52%; height: 52%; margin-left: 8%; }
@keyframes kzh-pulsa { 50% { transform: scale(1.08); } }
.kzh-pausa { position: absolute; inset: 0; z-index: 4; background: rgba(13, 21, 56, .45); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.kzh-pausa span { width: 90px; height: 90px; border-radius: 50%; background: rgba(255, 255, 255, .2); border: 5px solid #fff; display: grid; place-items: center; }
.kzh-pausa .kzh-ico { width: 44px; height: 44px; }
.kzh-pausa b { font: 800 26px var(--f-t); }

/* legenda */
.kzh-leg { position: absolute; left: 2.4%; right: 2.4%; bottom: 3%; z-index: 2; display: flex; gap: 12px; align-items: center; background: rgba(255, 255, 255, .96); color: var(--azul); border: 4px solid var(--azul); border-radius: 22px; padding: 8px 16px 8px 8px; box-shadow: 0 6px 0 rgba(27, 42, 107, .45); opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .25s, transform .25s; pointer-events: none; }
.kzh-leg.on { opacity: 1; transform: none; }
.kzh-leg.kzh-leg--fora { display: none; }
.kzh-leg__r { flex: none; width: clamp(48px, 7vw, 78px); height: clamp(48px, 7vw, 78px); border-radius: 50%; border: 4px solid var(--c); background: #e9f6ff; overflow: hidden; display: grid; place-items: center; }
.kzh-leg__r img { width: 120%; height: auto; margin-top: 12%; }
.kzh-leg__r img.kzh-leg__ed { width: 150%; margin-top: 40%; }
.kzh-leg__r img.kzh-leg__pd { width: 190%; max-width: none; margin-top: 4%; place-self: start center; }
.kzh-leg__r canvas { width: 100%; height: 100%; }
.kzh-leg__sv { color: var(--c); } .kzh-leg__sv .kzh-ico { width: 34px; height: 34px; }
.kzh-leg__cx { min-width: 0; }
.kzh-leg__cx b { font: 800 clamp(13px, 1.6vw, 18px) var(--f-t); display: block; line-height: 1; }
.kzh-leg__cx small { font: 700 12px var(--f-c); color: #667; }
.kzh-leg__cx p { margin: 2px 0 0; font: 800 clamp(16px, 2.3vw, 30px)/1.18 var(--f-t); }
.kzh-leg__cx p span { transition: color .12s; color: #7a83ad; }
.kzh-leg__cx p span.dito { color: var(--azul); }

/* escolhas */
.kzh-esc { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.4%; background: radial-gradient(ellipse at center, rgba(13, 21, 56, .25), rgba(13, 21, 56, .7)); opacity: 0; transition: opacity .3s; }
.kzh-esc.on { opacity: 1; }
.kzh-esc__t { margin: 0; font: 800 clamp(20px, 3.2vw, 40px) var(--f-t); text-shadow: 0 4px 0 var(--azul); text-align: center; }
.kzh-esc__t span { display: block; font-size: .55em; color: var(--sol); }
.kzh-esc__bts { display: flex; gap: 3%; width: 92%; justify-content: center; }
.kzh-esc__b { flex: 1; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 12px 16px; border-radius: 26px; border: 5px solid var(--azul); background: #fff; color: var(--azul); font: 800 clamp(16px, 2.4vw, 28px)/1.1 var(--f-t); cursor: pointer; box-shadow: 0 8px 0 var(--azul); position: relative; transition: transform .15s; animation: kzh-bt 2.2s infinite ease-in-out; }
.kzh-esc__b--1 { animation-delay: 1.1s; background: var(--sol); }
@keyframes kzh-bt { 50% { transform: translateY(-6px) rotate(-1deg); } }
.kzh-esc__b:hover { transform: scale(1.04); }
.kzh-esc__b:active { transform: translateY(6px); box-shadow: 0 2px 0 var(--azul); }
.kzh-esc__b--foi { animation: kzh-foi .45s both; }
@keyframes kzh-foi { 40% { transform: scale(1.15); } to { transform: scale(.9); opacity: .6; } }
.kzh-esc__ic { width: clamp(64px, 11vw, 140px); height: clamp(64px, 11vw, 140px); display: grid; place-items: center; border-radius: 50%; background: #e9f6ff; border: 4px solid var(--azul); overflow: hidden; }
.kzh-esc__ic svg { width: 78%; height: 78%; }
.kzh-esc__ic img { width: 80%; height: 92%; object-fit: contain; margin-top: 12%; }
.kzh-esc__b kbd { position: absolute; left: 10px; top: 8px; font: 800 14px var(--f-t); background: var(--azul); color: #fff; border-radius: 8px; padding: 0 7px; }

/* toques */
.kzh-toque { position: absolute; left: 0; right: 0; top: 3%; z-index: 2; display: flex; justify-content: center; align-items: center; gap: 10px; pointer-events: none; flex-wrap: wrap; padding: 0 10px; }
.kzh-toque__d, .kzh-toque__n { background: #fff; color: var(--azul); border: 4px solid var(--azul); border-radius: 99px; padding: 4px 16px; font: 800 clamp(15px, 2vw, 24px) var(--f-t); box-shadow: 0 5px 0 rgba(27, 42, 107, .4); animation: kzh-pulsa 1.6s infinite; }
.kzh-toque__n { background: var(--sol); animation: none; }
.kzh-toque__pula { pointer-events: auto; display: inline-flex; gap: 6px; align-items: center; background: var(--azul); color: #fff; border: 3px solid #fff; border-radius: 99px; padding: 5px 14px; font: 800 16px var(--f-t); cursor: pointer; }

/* fim */
.kzh-fim { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(13, 21, 56, .55); padding: 10px; overflow-y: auto; }
.kzh-fim__cx { background: #fff; color: var(--azul); border: 5px solid var(--azul); border-radius: 30px; box-shadow: 0 8px 0 var(--azul); padding: 14px 22px 20px; text-align: center; max-width: 620px; animation: kzh-entra .5s both cubic-bezier(.3, 1.4, .5, 1); }
.kzh-fim__cx img { width: clamp(60px, 9vw, 110px); height: auto; margin-top: -6px; }
.kzh-fim__cx h3 { font-size: clamp(34px, 6vw, 64px); color: var(--verm); }
.kzh-fim__l { font: 800 clamp(16px, 2.2vw, 24px) var(--f-t); background: var(--sol); border-radius: 16px; padding: 6px 12px; margin: 8px 0; }
.kzh-fim__c { font-size: 16px; }
.kzh-fim__bts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.kzh-fim__bts .kz-bt { font-size: 17px; padding: 9px 16px; }

/* controles */
.kzh-ctl { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 14px 12px; justify-content: center; flex-wrap: wrap; }
.kzh-caps { display: flex; gap: 6px; align-items: center; flex: 1; min-width: 120px; max-width: 520px; overflow-x: auto; padding: 4px; scrollbar-width: none; }
.kzh-caps button { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; background: rgba(255, 255, 255, .15); color: #fff; font: 800 15px var(--f-t); cursor: pointer; padding: 0; }
.kzh-caps button.on { background: var(--sol); color: var(--azul); border-color: var(--sol); transform: scale(1.12); }
.kzh-caps__mais { font-style: normal; font-weight: 800; opacity: .6; }
.kzh-vol { width: 110px; accent-color: var(--sol); }
.kzh-player.kzh--cheia .kzh-topo { display: none; }
.kzh-player:fullscreen .kzh-palco { width: min(100%, calc((100dvh - 80px) * 16 / 9)); }
.kzh-player:fullscreen .kzh-topo { display: none; }

/* celular: legenda e escolhas embaixo do desenho */
.kzh--estreito .kzh-meio { justify-content: flex-start; padding-top: 4px; }
.kzh--estreito .kzh-palco { border-radius: 16px; border-width: 3px; box-shadow: 0 6px 0 rgba(0, 0, 0, .35), 0 0 0 4px var(--azul); }
.kzh--estreito .kzh-leg { position: static; width: 100%; max-width: 700px; opacity: 1; transform: none; min-height: 84px; visibility: hidden; }
.kzh--estreito .kzh-leg.on { visibility: visible; }
.kzh--estreito .kzh-leg__cx p { font-size: 18px; }
.kzh--estreito .kzh-esc { position: static; width: 100%; max-width: 700px; background: none; gap: 10px; padding-bottom: 6px; }
.kzh--estreito .kzh-esc__t { font-size: 22px; }
.kzh--estreito .kzh-esc__bts { width: 100%; gap: 10px; }
.kzh--estreito .kzh-esc__b { font-size: 17px; padding: 10px 8px 12px; border-radius: 20px; }
.kzh--estreito .kzh-esc__ic { width: 72px; height: 72px; }
.kzh--estreito .kzh-toque { top: 2%; }
.kzh--estreito .kzh-toque__d { font-size: 13px; padding: 2px 10px; border-width: 3px; }
.kzh--estreito .kzh-toque__n { font-size: 13px; padding: 2px 10px; border-width: 3px; }
.kzh--estreito .kzh-fim { position: fixed; z-index: 9100; }
.kzh--estreito .kzh-topo__logo { height: 32px; }
.kzh--estreito .kzh-bt { width: 42px; height: 42px; }
.kzh--estreito .kzh-vol { display: none; }
.kzh--estreito .kzh-ctl { gap: 6px; padding: 8px; }
.kzh--estreito .kzh-caps { order: 9; flex-basis: 100%; max-width: none; justify-content: center; }

/* compartilhar */
.kzh-comp { position: fixed; inset: 0; z-index: 9500; background: rgba(13, 21, 56, .7); display: grid; place-items: center; padding: 14px; overflow-y: auto; }
.kzh-comp__cx { background: var(--creme); color: var(--azul); border: 5px solid var(--azul); border-radius: 30px; box-shadow: 0 10px 0 var(--azul); width: min(880px, 100%); padding: 16px 20px 20px; max-height: calc(100dvh - 28px); overflow-y: auto; }
.kzh-comp__topo { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.kzh-comp__topo h2 { font-size: clamp(24px, 4vw, 36px); text-shadow: none; }
.kzh-comp__corpo { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 20px; align-items: start; }
.kzh-comp__corpo canvas { width: 100%; height: auto; border-radius: 20px; border: 4px solid var(--azul); background: #36b3ff; }
.kzh-comp__lado { display: flex; flex-direction: column; gap: 12px; }
.kzh-comp__lado .kz-bt { justify-content: center; }
.kzh-comp__op { display: flex; gap: 8px; }
.kzh-comp__op button { flex: 1; border: 4px solid var(--azul); background: #fff; color: var(--azul); border-radius: 99px; padding: 8px; font: 800 16px var(--f-t); cursor: pointer; }
.kzh-comp__op button.on { background: var(--sol); }
.kzh-comp__nota { font-size: 15px; min-height: 1.4em; margin: 0; word-break: break-word; }
.kzh-comp__priv { font-size: 13px; opacity: .8; margin: 0; }
@media (max-width: 640px) { .kzh-comp__corpo { grid-template-columns: 1fr; } .kzh-comp__corpo canvas { max-width: 260px; margin: 0 auto; display: block; } }
@media (prefers-reduced-motion: reduce) { .kzh-card, .kzh-esc__b, .kzh-play, .kzh-toque__d { animation: none; } }
