/* ===== cabare.css ===== */
.cabare-selo { position: fixed; right: max(12px, env(safe-area-inset-right)); bottom: max(8px, env(safe-area-inset-bottom)); width: 118px; height: 156px; z-index: 250; pointer-events: none; perspective: 900px; isolation: isolate; overflow: hidden; contain: layout style; }
.cabare-selo *, .cabare-selo *::before, .cabare-selo *::after { box-sizing: border-box; }
.cabare-ancora { position: absolute; left: 50%; top: 51%; width: 220px; height: 353px; transform: translate(-50%, -50%) scale(.29); transform-style: preserve-3d; }
.cabare-modelo { position: absolute; width: 220px; height: 353px; transform-style: preserve-3d; transform: rotateX(-8deg) rotateY(25deg); }
.cabare-face { position: absolute; inset: 0; width: 220px; height: 353px; backface-visibility: hidden; transform-style: preserve-3d; border: 9px solid #08060d; border-top: 0; background: linear-gradient(100deg, #1e111b, #120b16 48%, #2a0d1b); box-shadow: inset 0 0 0 4px #b61130, inset 0 0 0 8px #270813, 0 0 18px #8f06222b; }
.cabare-face::before, .cabare-face::after { content: ''; position: absolute; top: 51px; bottom: 4px; width: 7px; background: linear-gradient(90deg, #09070d, #fc2850, #5f071b); z-index: 3; }
.cabare-face::before { left: 0; }
.cabare-face::after { right: 0; }
.cabare-f0 { transform: translateZ(110px); }
.cabare-f1 { transform: rotateY(90deg) translateZ(110px); }
.cabare-f2 { transform: rotateY(180deg) translateZ(110px); }
.cabare-f3 { transform: rotateY(270deg) translateZ(110px); }
.cabare-placa { position: absolute; top: 5px; left: -2px; right: -2px; height: 41px; display: flex; align-items: center; justify-content: center; background: linear-gradient(#1c0814, #08060c); border: 5px solid #d51637; box-shadow: 0 0 10px #ff1d514d, inset 0 0 7px #f30f3345; white-space: nowrap; font: 900 14px Verdana, sans-serif; letter-spacing: -.35px; color: #fff2f4; text-shadow: 0 0 5px #ff678b; z-index: 4; }
.cabare-porta { position: absolute; left: 16px; right: 16px; top: 61px; bottom: 18px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 9px; background: #09070f; padding: 5px; border: 2px solid #470b1c; }
.cabare-painel { position: relative; border: 5px solid #1b0a18; background: linear-gradient(133deg, #c81330, #bd0c2c 45%, #620719); box-shadow: inset 0 0 0 3px #5e0a21, 0 0 0 2px #300918; overflow: hidden; }
.cabare-painel::before { content: ''; position: absolute; inset: 0; background: linear-gradient(130deg, transparent 10%, #ff829b3a 30%, transparent 40%, transparent 70%, #ff8ba72c 82%, transparent 92%); }
.cabare-painel::after { content: ''; position: absolute; top: 7px; left: 7px; width: 26%; height: 6px; background: #ff7b9452; }
.cabare-painel:nth-child(3), .cabare-painel:nth-child(4) { background: linear-gradient(150deg, #a00a26, #4f0617); }
.cabare-painel:nth-child(5), .cabare-painel:nth-child(6) { background: linear-gradient(130deg, #6e0a20, #3c0412); }
.cabare-especial::after { top: auto; left: 10px; bottom: 12px; width: 25px; height: 27px; background: #fff1ee; box-shadow: 0 0 11px #ff6c7c, 0 0 1px 4px #f83156; }
.cabare-centro { position: absolute; top: 58px; bottom: 10px; left: calc(50% - 3px); width: 6px; background: linear-gradient(90deg, #04020a, #1e111c, #08060e); z-index: 4; }
.cabare-beiral { position: absolute; left: -15px; top: -27px; width: 250px; height: 32px; background: linear-gradient(#ef143f 0 13%, #130a13 13% 56%, #3b111c 57% 81%, #fa1c43 81%); border: 5px solid #0b060e; border-top: 4px solid #fc2a53; box-shadow: 0 0 8px #e30e385e; }
.cabare-r0 { transform: translateZ(124px); }
.cabare-r1 { transform: rotateY(90deg) translateZ(124px); }
.cabare-r2 { transform: rotateY(180deg) translateZ(124px); }
.cabare-r3 { transform: rotateY(270deg) translateZ(124px); }
.cabare-teto { position: absolute; top: -128px; left: -15px; width: 250px; height: 250px; transform: rotateX(90deg); background: repeating-linear-gradient(90deg, #260e1c 0 11px, #100911 11px 23px); border: 15px solid #d9193b; box-shadow: inset 0 0 0 6px #07060c, 0 0 0 4px #13050b; }
.cabare-base { position: absolute; bottom: -14px; left: -10px; width: 240px; height: 18px; background: linear-gradient(#ff2a50, #13060d); border: 4px solid #09070f; }
.cabare-b0 { transform: translateZ(116px); }
.cabare-b1 { transform: rotateY(90deg) translateZ(116px); }
.cabare-b2 { transform: rotateY(180deg) translateZ(116px); }
.cabare-b3 { transform: rotateY(270deg) translateZ(116px); }
.cabare-lampada { position: absolute; left: calc(50% - 20px); top: -87px; width: 40px; height: 61px; transform-style: preserve-3d; }
.cabare-luz { position: absolute; inset: 0; background: linear-gradient(90deg, #8d2109 4%, #fff2a1 42%, #ff9b1f 85%, #8d2109); border: 7px solid #1b0914; box-shadow: inset 0 0 9px #fffba1, 0 0 20px #f74a2780; }
.cabare-l0 { transform: translateZ(20px); }
.cabare-l1 { transform: rotateY(90deg) translateZ(20px); }
.cabare-l2 { transform: rotateY(180deg) translateZ(20px); }
.cabare-l3 { transform: rotateY(270deg) translateZ(20px); }
.cabare-tampa { position: absolute; left: -5px; top: -7px; width: 50px; height: 11px; background: #fa2947; border: 3px solid #140712; }
.cabare-suporte { position: absolute; left: -4px; bottom: -5px; width: 48px; height: 9px; background: #08060e; border-top: 3px solid #ed1a3e; }
.cabare-chao { position: absolute; left: 14%; bottom: 18px; width: 72%; height: 14px; border-radius: 50%; background: radial-gradient(ellipse, #f50b3663, #5a081941 40%, transparent 76%); filter: blur(4px); }
.cabare-assinatura { position: absolute; bottom: 0; inset-inline: 0; text-align: center; color: #ffcf9b; font: 800 9px/14px Verdana, sans-serif; letter-spacing: .06em; text-shadow: 0 1px 3px #000, 0 0 8px #ef174b; }
.cabare-raio { position: absolute; top: 30%; width: 28px; height: 55px; background: #ff5c75; opacity: .5; clip-path: polygon(64% 0, 38% 37%, 64% 36%, 10% 100%, 32% 55%, 8% 58%); }
.cabare-raio-0 { left: 0; transform: rotate(19deg); }
.cabare-raio-1 { right: 0; transform: rotate(195deg); top: 22%; }
.cabare-raio-2 { right: 5px; top: 52%; transform: rotate(175deg); }
.cabare-raio-3 { left: 6px; top: 57%; transform: rotate(-15deg); }
.cabare-raio-4 { left: 41%; top: 6%; height: 25px; transform: rotate(90deg); }
body:has(.cabare-selo) .to-top { bottom: max(176px, calc(env(safe-area-inset-bottom) + 176px)); }
@media (prefers-reduced-motion: no-preference) {
  .cabare-modelo { animation: cabare-giro 22s linear infinite; }
  .cabare-raio { animation: cabare-energia 3s ease-in-out infinite alternate; }
  .cabare-raio-1, .cabare-raio-3 { animation-delay: -1.5s; }
}
@keyframes cabare-giro { from { transform: rotateX(-8deg) rotateY(25deg); } to { transform: rotateX(-8deg) rotateY(385deg); } }
@keyframes cabare-energia { from { opacity: .15; } to { opacity: .8; } }
@media (max-width: 767px) {
  .cabare-selo { width: 82px; height: 114px; right: max(6px, env(safe-area-inset-right)); bottom: max(6px, env(safe-area-inset-bottom)); }
  .cabare-ancora { transform: translate(-50%, -50%) scale(.2); }
  .cabare-assinatura { font-size: 7px; letter-spacing: 0; }
  .cabare-raio { width: 20px; height: 35px; }
  body:has(.cabare-selo) .to-top { bottom: max(136px, calc(env(safe-area-inset-bottom) + 136px)); }
}
@media print { .cabare-selo { display: none; } }
