/* Cândido Adventure V9.9.60 — novo álbum sobre a imagem oficial.
   Apenas apresentação: os desbloqueios e as imagens de postcards continuam sendo os originais. */
html body #postcardOverlay.ca-pc60-active{
 display:flex!important;align-items:center!important;justify-content:center!important;
 padding:0!important;margin:0!important;overflow:hidden!important;
 background:rgba(6,16,36,.92)!important;backdrop-filter:blur(7px);
}
html body #postcardOverlay.ca-pc60-active #postcardBook{
 box-sizing:border-box!important;position:relative!important;
 width:min(98vw,calc(96dvh * 1670 / 941),1670px)!important;
 max-width:none!important;min-width:0!important;
 height:auto!important;max-height:96dvh!important;
 aspect-ratio:1670 / 941!important;
 border:0!important;border-radius:0!important;
 box-shadow:none!important;padding:0!important;margin:0!important;
 overflow:hidden!important;
 background:#f6e7b9 url('imagens/interface/candido-postcards-v9960.png') center / 100% 100% no-repeat!important;
 container-type:inline-size;
 color:#17325e!important;
}
html body #postcardOverlay.ca-pc60-active #postcardBook::before,
html body #postcardOverlay.ca-pc60-active #postcardBook::after{display:none!important;content:none!important}
html body #postcardOverlay.ca-pc60-active #postcardBook .ca-pc60-counter{
 position:absolute;left:43.4%;top:18.8%;width:13.3%;height:7%;
 display:flex;align-items:center;justify-content:center;
 font-family:Georgia,serif;font-size:clamp(11px,1.9cqw,31px);
 font-weight:900;line-height:1!important;padding:0!important;margin:0!important;color:#143568;text-shadow:0 1px 0 #fff7d8;
 white-space:nowrap;pointer-events:none;
}
html body #postcardOverlay.ca-pc60-active #postcardBook #closePostcards{
 position:absolute!important;top:19.4%!important;right:5.1%!important;left:auto!important;z-index:12!important;
 width:clamp(38px,5.8cqw,66px)!important;height:clamp(28px,3.7cqw,48px)!important;
 min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;
 border:0!important;background:transparent url('ca-x-mapa-oficial-v9955.png') center / contain no-repeat!important;
 color:transparent!important;font-size:0!important;box-shadow:none!important;overflow:visible!important;
 cursor:pointer!important;
}
html body #postcardOverlay.ca-pc60-active #postcardBook .ca-pc60-back{
 position:absolute;left:4.7%;top:19.2%;z-index:12;
 width:clamp(38px,5.8cqw,66px);height:clamp(28px,3.7cqw,48px);
 border:0;padding:0;cursor:pointer;
 background:transparent url('porto-das-aventuras/ca-porto-voltar-v9957.png') center / contain no-repeat;
 transition:transform .18s ease,filter .18s ease;
}
@media(hover:hover) and (pointer:fine){
 html body #postcardOverlay.ca-pc60-active #postcardBook .ca-pc60-back:hover{
 transform:scale(1.06);filter:brightness(1.12) drop-shadow(0 1px 5px #ffe482)}
}
html body #postcardOverlay.ca-pc60-active #postcardBook .ca-pc60-panel{
 position:absolute!important;left:6.1%!important;top:27.4%!important;width:87.7%!important;height:51.9%!important;
 box-sizing:border-box!important;margin:0!important;padding:1.1% 1.25% 1.5%!important;
 display:flex!important;flex-direction:column!important;gap:1.3%!important;
 overflow:hidden!important;border:0!important;box-shadow:none!important;
 background:transparent!important;
}
html body #postcardOverlay.ca-pc60-active .ca-pc60-tabs{
 display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:.6%;
 height:15%;flex:none;min-height:0;width:100%;align-items:stretch;
}
html body #postcardOverlay.ca-pc60-active .ca-pc60-tab{
 border:2px solid #bf8831!important;border-radius:13px!important;
 margin:0!important;padding:1px 3px!important;
 font-family:Georgia,serif;font-weight:800;
 font-size:clamp(8px,1.04cqw,17px)!important;line-height:1.07!important;
 color:#fff!important;text-shadow:0 1px 2px #24110a!important;
 background:linear-gradient(#9f612f,#6c341a)!important;
 cursor:pointer!important;min-width:0;overflow:hidden;
 box-shadow:inset 0 0 0 1px #f7d77c77,0 2px 3px #10244f44!important;
 transition:filter .15s ease,background-color .15s ease;
}
html body #postcardOverlay.ca-pc60-active .ca-pc60-tab[aria-selected="true"]{
 background:linear-gradient(#a46c3b,#5e2917)!important;color:#fff!important;
 text-shadow:0 1px 2px #24110a!important;border-color:#e4b16a!important;
}
html body #postcardOverlay.ca-pc60-active .ca-pc60-tab:hover{filter:brightness(1.12)}
html body #postcardOverlay.ca-pc60-active .ca-pc60-tab:focus-visible,
html body #postcardOverlay.ca-pc60-active .ca-pc60-card:focus-visible{outline:3px solid #1f69d6;outline-offset:-3px}
html body #postcardOverlay.ca-pc60-active .ca-pc60-carousel{
 display:flex;flex-direction:column;min-height:0;flex:1;gap:1%;overflow:hidden;
}
html body #postcardOverlay.ca-pc60-active .ca-pc60-track{
 --pc60-gap:1.1%;display:flex;gap:var(--pc60-gap);flex:1;min-height:0;
 width:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;
 scroll-behavior:smooth;overscroll-behavior-x:contain;scrollbar-width:thin;
 scrollbar-color:#ad742e #f8e6b6;padding:0 0 2px;
}
html body #postcardOverlay.ca-pc60-active .ca-pc60-card{
 box-sizing:border-box;flex:0 0 calc((100% - 4 * var(--pc60-gap))/5);
 scroll-snap-align:start;display:flex;flex-direction:column;align-items:center;justify-content:space-between;
 min-width:0;min-height:0;height:100%;padding:.85% .75% 1.15%!important;
 border:2px solid #b98237;border-radius:10px;background:linear-gradient(175deg,#fff9e6,#f1d9a9);
 box-shadow:inset 0 0 0 2px #fff9d9,0 2px 4px #78512145;
 color:#17376a;cursor:default;overflow:hidden;gap:2px;text-align:center;
}
html body #postcardOverlay.ca-pc60-active .ca-pc60-card.is-locked{
 border-color:#a8a0a0;background:linear-gradient(#f1eee7,#d5d3d3);color:#59616b;cursor:default;
}
html body #postcardOverlay.ca-pc60-active .ca-pc60-card:hover{
 transform:none!important;filter:none!important;}
html body #postcardOverlay.ca-pc60-active .ca-pc60-art{
 width:100%;flex:1 1 43%;min-height:0;display:grid;place-items:center;position:relative;
 border-radius:6px;background:#ede0bb;overflow:hidden;
}
html body #postcardOverlay.ca-pc60-active .ca-pc60-art img{width:100%;height:100%;object-fit:contain;display:block;max-height:100%}
html body #postcardOverlay.ca-pc60-active .ca-pc60-lock{position:absolute;right:3%;top:2%;font-size:clamp(13px,1.65cqw,23px);background:#fffbe8c9;border-radius:5px;padding:0 2px}
html body #postcardOverlay.ca-pc60-active .ca-pc60-card strong{
 display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;
 font:bold clamp(9px,.98cqw,17px)/1.08 Georgia,serif!important;
 overflow:hidden;max-width:100%;overflow-wrap:anywhere;flex:none;
}
html body #postcardOverlay.ca-pc60-active .ca-pc60-card small{
 font-size:clamp(8px,.7cqw,12px)!important;font-weight:700;line-height:1.05;flex:none;
}
html body #postcardOverlay.ca-pc60-active .ca-pc60-range{
 margin:0!important;appearance:auto!important;display:block;width:100%;height:7%;min-height:9px;
 padding:0;border:0;background:transparent;flex:none;accent-color:#b88030;cursor:pointer;
}
html body #postcardOverlay.ca-pc60-active .ca-pc60-range:disabled{opacity:.3;cursor:default}
html body #postcardOverlay.ca-pc60-active .ca-pc60-detail-panel{
 flex-direction:row!important;align-items:center;justify-content:center;gap:3%!important;
}
html body #postcardOverlay.ca-pc60-active .ca-pc60-detail-art{
 flex:0 0 47%;height:90%;min-width:0;background:#fff9e8;border:3px solid #cea75e;border-radius:12px;
 display:grid;place-items:center;overflow:hidden;box-shadow:0 4px 8px #54402344;
}
html body #postcardOverlay.ca-pc60-active .ca-pc60-detail-art img{height:100%;width:100%;object-fit:contain}
html body #postcardOverlay.ca-pc60-active .ca-pc60-detail-copy{display:flex;flex-direction:column;align-items:start;justify-content:center;gap:6px;max-height:100%;overflow-y:auto;flex:1}
html body #postcardOverlay.ca-pc60-active .ca-pc60-detail-copy h3{font:bold clamp(13px,2.25cqw,31px)/1.1 Georgia,serif;color:#183d77;margin:0}
html body #postcardOverlay.ca-pc60-active .ca-pc60-detail-copy p{font-size:clamp(11px,1.25cqw,19px);line-height:1.25;margin:0}
html body #postcardOverlay.ca-pc60-active .ca-pc60-detail-copy small{font-size:clamp(10px,.92cqw,15px);color:#654c29}
@media(orientation:landscape) and (max-height:500px){
 html body #postcardOverlay.ca-pc60-active #postcardBook{width:min(98vw,calc(96dvh * 1670 / 941))!important}
 html body #postcardOverlay.ca-pc60-active .ca-pc60-panel{top:27.2%!important;height:52.2%!important}
 html body #postcardOverlay.ca-pc60-active .ca-pc60-tab{padding:0 2px!important;font-size:clamp(7px,1.12cqw,11px)!important}
 html body #postcardOverlay.ca-pc60-active .ca-pc60-card strong{font-size:clamp(8px,1.2cqw,12px)!important}
 html body #postcardOverlay.ca-pc60-active .ca-pc60-card small{font-size:clamp(7px,.98cqw,10px)!important}
 html body #postcardOverlay.ca-pc60-active .ca-pc60-card{padding:1px 2px!important}
}
@media(prefers-reduced-motion:reduce){
 html body #postcardOverlay.ca-pc60-active *{scroll-behavior:auto!important;transition:none!important}
}

/* V9.9.61: Postcards são informações, não botões. Quatro campos em cada cartão. */
html body #postcardOverlay.ca-pc60-active .ca-pc60-card {cursor:default!important;user-select:text!important;gap:1.3%!important;justify-content:flex-start!important}
html body #postcardOverlay.ca-pc60-active .ca-pc60-card .ca-pc60-art{flex:0 0 56%!important;height:56%!important;min-height:0!important}
html body #postcardOverlay.ca-pc60-active .ca-pc60-card strong{display:block!important;flex:none!important;font-size:clamp(9px,.98cqw,16px)!important;line-height:1.08!important;max-height:2.2em!important;overflow:hidden!important}
html body #postcardOverlay.ca-pc60-active .ca-pc60-condition{flex:0 1 auto;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;line-clamp:3;overflow:hidden!important;margin:0!important;padding:0!important;width:100%;font:600 clamp(7px,.76cqw,12px)/1.1 'Trebuchet MS',Arial,sans-serif;color:#433f3d;overflow-wrap:anywhere}
html body #postcardOverlay.ca-pc60-active .ca-pc60-card .ca-pc60-date{display:block!important;flex:none!important;min-height:1.15em;font:600 clamp(6px,.65cqw,11px)/1.06 'Trebuchet MS',Arial,sans-serif!important;color:#785018;white-space:normal;overflow-wrap:anywhere}
html body #postcardOverlay.ca-pc60-active .ca-pc60-tab,html body #postcardOverlay.ca-pc60-active .ca-pc60-tab[aria-selected="true"]{color:#fff!important}
@media (max-height:520px) and (orientation:landscape){
 html body #postcardOverlay.ca-pc60-active .ca-pc60-card{gap:0!important;padding:1px 2px!important}
 html body #postcardOverlay.ca-pc60-active .ca-pc60-card .ca-pc60-art{flex:0 0 41%!important;height:41%!important;min-height:0!important}
 html body #postcardOverlay.ca-pc60-active .ca-pc60-card strong{font-size:clamp(9px,1.22cqw,12px)!important;max-height:2.14em!important}
 html body #postcardOverlay.ca-pc60-active .ca-pc60-condition{font-size:clamp(8px,1.05cqw,10px)!important;-webkit-line-clamp:3;line-height:1.05!important}
 html body #postcardOverlay.ca-pc60-active .ca-pc60-card .ca-pc60-date{font-size:clamp(7px,.87cqw,9px)!important;line-height:1!important}
}

/* V9.9.62: fechar deve derrotar o display:flex da modalidade ativa. */
html body #postcardOverlay.hidden,html body #postcardOverlay[hidden]{display:none!important;visibility:hidden!important;pointer-events:none!important}
html body #postcardOverlay.ca-pc60-active #postcardBook .ca-pc60-back{display:block!important;pointer-events:auto!important;z-index:30!important;left:4.7%!important;top:19.2%!important;position:absolute!important;min-width:0!important;min-height:0!important;color:transparent!important;font-size:0!important}
html body #postcardOverlay.ca-pc60-active #postcardBook #closePostcards{z-index:31!important;pointer-events:auto!important}

/* V9.9.63 — Sem Voltar; contador alinhado; postcards bloqueados sem imagem; cartões legíveis em mobile horizontal. */
html body #postcardOverlay.ca-pc60-active #postcardBook .ca-pc60-back,
html body #postcardOverlay.ca-pc60-active #postcardBook #ca-pc62-back{display:none!important}
html body #postcardOverlay.ca-pc60-active #postcardBook .ca-pc60-counter{
 top:19.8%!important;height:6.4%!important;display:grid!important;place-items:center!important;
 padding:0!important;margin:0!important;line-height:1!important;
}
html body #postcardOverlay.ca-pc60-active .ca-pc60-card.is-locked .ca-pc60-art{background:linear-gradient(135deg,#e6e0cf,#cfc8b9)!important}
html body #postcardOverlay.ca-pc60-active .ca-pc60-placeholder{display:grid!important;place-items:center!important;width:100%!important;height:100%!important;background:repeating-linear-gradient(45deg,#dfd8c8 0 12px,#eae4d6 12px 24px)!important;color:#684e32}
html body #postcardOverlay.ca-pc60-active .ca-pc60-placeholder .ca-pc60-lock{position:static!important;display:block!important;font-size:clamp(17px,2cqw,34px)!important;background:none!important;padding:0!important;line-height:1.2!important}
/* No postcard text is ellipsized or line-clamped. Internal scrolling only when unavoidable. */
html body #postcardOverlay.ca-pc60-active .ca-pc60-card{min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:thin!important;scrollbar-color:#c49760 transparent!important}
html body #postcardOverlay.ca-pc60-active .ca-pc60-card strong{
 display:block!important;max-height:none!important;line-clamp:unset!important;-webkit-line-clamp:unset!important;
 overflow:visible!important;white-space:normal!important;overflow-wrap:anywhere!important;
}
html body #postcardOverlay.ca-pc60-active .ca-pc60-condition{
 display:block!important;-webkit-line-clamp:unset!important;line-clamp:unset!important;max-height:none!important;
 overflow:visible!important;overflow-wrap:anywhere!important;word-break:normal!important;flex:none!important;
}
html body #postcardOverlay.ca-pc60-active .ca-pc60-card .ca-pc60-date{
 min-height:0!important;overflow:visible!important;white-space:normal!important;flex:none!important;
}
@media(max-height:520px) and (orientation:landscape){
 html body #postcardOverlay.ca-pc60-active .ca-pc60-card{padding:2px 2px 3px!important;gap:2px!important;justify-content:flex-start!important}
 html body #postcardOverlay.ca-pc60-active .ca-pc60-card .ca-pc60-art{flex:0 0 29%!important;height:29%!important;min-height:24px!important}
 html body #postcardOverlay.ca-pc60-active .ca-pc60-card strong{font:700 clamp(8px,1.16cqw,12px)/1.09 Georgia,serif!important}
 html body #postcardOverlay.ca-pc60-active .ca-pc60-condition{font:600 clamp(7px,.94cqw,10px)/1.12 'Trebuchet MS',Arial,sans-serif!important}
 html body #postcardOverlay.ca-pc60-active .ca-pc60-card .ca-pc60-date{font:600 clamp(7px,.82cqw,9px)/1.08 'Trebuchet MS',Arial,sans-serif!important}
}


/* V9.9.68 — Mobile horizontal: recebidos mostram imagem, título e data sem prefixo.
   Não recebidos permanecem com o visual e os textos da V9.9.63.
   Desktop mantém título, condição e “Recebido em:”. */
@media (orientation:landscape) and (max-width:1100px) and (max-height:800px) {
  html body #postcardOverlay.ca-pc60-active .ca-pc60-card.is-earned > .ca-pc60-condition,
  html body #postcardOverlay.ca-pc60-active .ca-pc60-card.is-earned > .ca-pc60-date .ca-pc60-date-prefix {display:none!important;}
  html body #postcardOverlay.ca-pc60-active .ca-pc60-card.is-earned {
    display:flex!important;flex-direction:column!important;justify-content:flex-start!important;
    gap:2px!important;overflow:hidden!important;padding:2px 3px 4px!important;
  }
  html body #postcardOverlay.ca-pc60-active .ca-pc60-card.is-earned > .ca-pc60-art {
    display:grid!important;flex:1 1 0!important;height:auto!important;
    width:100%!important;min-height:0!important;
  }
  html body #postcardOverlay.ca-pc60-active .ca-pc60-card.is-earned > strong {
    display:block!important;flex:0 0 auto!important;
    max-height:2.2em!important;overflow:hidden!important;
    font:700 clamp(8px,1.14cqw,12px)/1.08 Georgia,serif!important;
    text-align:center!important;overflow-wrap:anywhere!important;
  }
  html body #postcardOverlay.ca-pc60-active .ca-pc60-card.is-earned > .ca-pc60-date {
    display:block!important;flex:0 0 auto!important;
    font:600 clamp(7px,.94cqw,10px)/1.05 'Trebuchet MS',Arial,sans-serif!important;
    text-align:center!important;white-space:nowrap!important;
    min-height:0!important;
  }
}
