/* CHAOS ARENA — v4.6.43c-r1 | Hangar Premium, VISUAL ONLY.
   Isolado ao lobby: sem alterar preview, mapa, armas, patentes ou eventos do jogo. */
#menu .cinematic-lobby .cinematic-hangar {
  background: #06101d !important;
  isolation: isolate;
}
/* A antiga arquitetura feita de gradientes fica oculta para não duplicar a nova garagem. */
#menu .cinematic-lobby .cinematic-hangar .hangar-vault,
#menu .cinematic-lobby .cinematic-hangar .hangar-gate,
#menu .cinematic-lobby .cinematic-hangar .hangar-crossbeam,
#menu .cinematic-lobby .cinematic-hangar .hangar-banner,
#menu .cinematic-lobby .cinematic-hangar .hangar-floor { display:none !important; }
#menu .cinematic-lobby .cinematic-hangar .ca43c-scenery {
  position:absolute;
  inset:-2.8%;
  z-index:0;
  background-image:url('./garagem_cinematica.png?v=43c-r2');
  background-position:center 45%;
  background-repeat:no-repeat;
  background-size:cover;
  transform:scale(1.028) translate3d(0,0,0);
  transform-origin:center center;
  animation:ca43c-scene-drift 36s ease-in-out infinite alternate;
  opacity:.98;
}
/* Luz ambiente móvel. Não há GIF, vídeo ou JavaScript adicional. */
#menu .cinematic-lobby .cinematic-hangar .ca43c-light-shift {
  position:absolute;
  z-index:1;
  inset:-10% -12%;
  pointer-events:none;
  background:radial-gradient(ellipse at 25% 30%,#36d8ff22,transparent 35%),
             radial-gradient(ellipse at 80% 53%,#ffb63a18,transparent 37%),
             linear-gradient(112deg,transparent 25%,#b6eaff0c 41%,transparent 55%);
  mix-blend-mode:screen;
  opacity:.56;
  animation:ca43c-lights-breathe 10s ease-in-out infinite alternate;
}
#menu .cinematic-lobby .cinematic-hangar .ca43c-lightcone {
  position:absolute;
  z-index:2;
  top:5%; height:64%; width:22%;
  background:linear-gradient(180deg,#a0ecff2c,#2ab9f007 55%,transparent);
  clip-path:polygon(42% 0,58% 0,100% 100%,0% 100%);
  filter:blur(14px);
  mix-blend-mode:screen;
  transform-origin:50% 0;
  animation:ca43c-cone 9s ease-in-out infinite alternate;
}
#menu .cinematic-lobby .cinematic-hangar .ca43c-lightcone.left {left:29%;}
#menu .cinematic-lobby .cinematic-hangar .ca43c-lightcone.right {right:27%; animation-delay:-4.5s;}
/* O ponto de luz acompanha a arte do portão, não interfere no tanque. */
#menu .cinematic-lobby .cinematic-hangar .ca43c-alarm {
  position:absolute;
  z-index:3;
  top:18%;width:15px;height:10px;border-radius:4px;
  background:#ff6252;
  box-shadow:0 0 6px 2px #ff6758,0 0 22px 9px #ff4e4e52;
  opacity:.55;
  animation:ca43c-warning 4.8s linear infinite;
}
#menu .cinematic-lobby .cinematic-hangar .ca43c-alarm.left {left:32.6%;}
#menu .cinematic-lobby .cinematic-hangar .ca43c-alarm.right {right:32.8%;animation-delay:-.2s;}
#menu .cinematic-lobby .cinematic-hangar .ca43c-monitor {
  position:absolute;
  z-index:2;
  top:36%;width:5.6%;height:6%;
  opacity:.6;
  background:repeating-linear-gradient(0deg,transparent 0 7px,#4fdaff3f 8px 9px,transparent 10px 15px);
  clip-path:polygon(0 0,100% 0,100% 100%,0 100%);
  mix-blend-mode:screen;
  animation:ca43c-monitor 6.6s linear infinite;
}
#menu .cinematic-lobby .cinematic-hangar .ca43c-monitor.left {left:15.3%;}
#menu .cinematic-lobby .cinematic-hangar .ca43c-monitor.right {right:15.3%;animation-delay:-3.2s;}
/* Vapor atrás do tanque. Baixa opacidade para não reduzir a nitidez da prévia HD. */
#menu .cinematic-lobby .cinematic-hangar .ca43c-steam {
  position:absolute;
  z-index:3;
  left:14%;top:65%;width:20%;height:17%;
  pointer-events:none;
  background:radial-gradient(ellipse at 45% 55%,#bedefb2c,#c4e6ff09 49%,transparent 75%);
  filter:blur(12px);
  opacity:0;
  transform:translate3d(-12%,25%,0) scale(.8);
  animation:ca43c-steam 11s ease-out infinite;
}
#menu .cinematic-lobby .cinematic-hangar .ca43c-steam.s2 {left:65%;top:61%;width:21%;animation-delay:-4s;animation-duration:12s;}
#menu .cinematic-lobby .cinematic-hangar .ca43c-steam.s3 {left:43%;top:69%;width:15%;height:13%;animation-delay:-7s;animation-duration:15s;opacity:.16;}
/* Pontos de solda / poeira que passam pelo hangar. */
#menu .cinematic-lobby .cinematic-hangar .ca43c-spark {
  position:absolute;z-index:3;width:3px;height:3px;border-radius:50%;
  background:#ffd08a;box-shadow:0 0 6px 2px #fca65399;
  opacity:0;animation:ca43c-spark 7s ease-out infinite;
}
#menu .cinematic-lobby .cinematic-hangar .ca43c-spark.sp1 {left:24%;top:57%;animation-delay:-1.2s;}
#menu .cinematic-lobby .cinematic-hangar .ca43c-spark.sp2 {right:24%;top:56%;animation-delay:-3.6s;animation-duration:8.7s;}
#menu .cinematic-lobby .cinematic-hangar .ca43c-spark.sp3 {left:77%;top:73%;animation-delay:-5.6s;animation-duration:9.3s;}
/* Mantém o tanque, seu canvas, a plataforma e todos os botões originais intactos. */
#menu .cinematic-lobby .cinematic-hangar .hangar-fog {z-index:2;opacity:.28;}
#menu .cinematic-lobby .cinematic-hangar .hangar-light {z-index:2;opacity:.12;}
#menu .cinematic-lobby .cinematic-hangar .hangar-particle {z-index:3;}
#menu .cinematic-lobby .cinematic-hangar::after {opacity:.15!important;}
#menu .cinematic-lobby .cin-hero-platform {z-index:1;}
#menu .cinematic-lobby .cin-hero-aura {z-index:2;}
#menu .cinematic-lobby #lobbyTankCanvas {z-index:3;}
@keyframes ca43c-scene-drift {
  0% {transform:scale(1.028) translate3d(-.45%,0,0);filter:brightness(.97);}
  100% {transform:scale(1.048) translate3d(.45%,-.28%,0);filter:brightness(1.035);}
}
@keyframes ca43c-lights-breathe {
  0% {opacity:.28;transform:translate3d(-1.2%,0,0);}
  100% {opacity:.72;transform:translate3d(1.2%,0,0);}
}
@keyframes ca43c-cone {
  0% {opacity:.3;transform:skewX(-3deg);}
  100% {opacity:.7;transform:skewX(3deg);}
}
@keyframes ca43c-warning {
  0%,84%,91%,96%,100% {opacity:.25;}
  85%,89%,93%,95% {opacity:1;}
}
@keyframes ca43c-monitor {
  0% {opacity:.24;transform:translateY(-3px);}
  48% {opacity:.56;}
  60% {opacity:.36;}
  100% {opacity:.24;transform:translateY(3px);}
}
@keyframes ca43c-steam {
  0% {opacity:0;transform:translate3d(-11%,27%,0) scale(.65);}
  18% {opacity:.38;}
  60% {opacity:.25;}
  100% {opacity:0;transform:translate3d(16%,-47%,0) scale(1.65);}
}
@keyframes ca43c-spark {
  0%,15% {opacity:0;transform:translate3d(0,0,0);}
  18% {opacity:.84;}
  37% {opacity:0;transform:translate3d(30px,-58px,0);}
  100% {opacity:0;transform:translate3d(30px,-58px,0);}
}
@media(max-width:800px) {
  #menu .cinematic-lobby .cinematic-hangar .ca43c-scenery {background-position:center center;}
  #menu .cinematic-lobby .cinematic-hangar .ca43c-monitor {display:none;}
  #menu .cinematic-lobby .cinematic-hangar .ca43c-lightcone {opacity:.25;}
}
@media(prefers-reduced-motion:reduce) {
  #menu .cinematic-lobby .cinematic-hangar .ca43c-scenery,
  #menu .cinematic-lobby .cinematic-hangar .ca43c-light-shift,
  #menu .cinematic-lobby .cinematic-hangar .ca43c-lightcone,
  #menu .cinematic-lobby .cinematic-hangar .ca43c-alarm,
  #menu .cinematic-lobby .cinematic-hangar .ca43c-monitor,
  #menu .cinematic-lobby .cinematic-hangar .ca43c-steam,
  #menu .cinematic-lobby .cinematic-hangar .ca43c-spark {animation:none!important;}
  #menu .cinematic-lobby .cinematic-hangar .ca43c-steam,
  #menu .cinematic-lobby .cinematic-hangar .ca43c-spark {display:none!important;}
}

/* CA43C_R5_PLATFORM_PREMIUM_BEGIN */
/* Plataforma metalica premium (sem imagens externas).
   O centro, a largura e a altura originais permanecem inalterados.
   Mantem o canvas do tanque e a garagem R2/R3/R4 intocados. */
#menu .cinematic-lobby .cin-hero-platform {
  isolation: isolate;
  overflow: visible;
  border: 5px solid #7b92a7;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 80% 60% at 50% 35%, rgba(112,157,188,.24) 0%, transparent 67%),
    repeating-linear-gradient(91deg, rgba(151,188,212,.023) 0 2px, transparent 2px 6px),
    radial-gradient(ellipse at 50% 40%, #253d56 0%, #172b41 35%, #0d1c2d 70%, #07111f 100%);
  box-shadow:
    inset 0 2px 0 #c5daeb73,
    inset 0 7px 12px #020a16be,
    inset 0 0 0 7px #102136,
    inset 0 0 0 10px #3d566e,
    inset 0 0 0 12px #0a1729,
    inset 0 0 0 14px #f6ad478c,
    0 1px 0 2px #9db2c6,
    0 6px 0 4px #43596d,
    0 11px 0 5px #24374a,
    0 16px 0 6px #132333,
    0 21px 0 7px #3c4959,
    0 25px 0 8px #091420,
    0 34px 33px 12px rgba(0,0,0,.67),
    0 0 37px rgba(255,162,59,.21);
}
/* Trilho de engenharia externo: discreto, para nao parecer um circulo pontilhado. */
#menu .cinematic-lobby .cin-hero-platform::before {
  content: '';
  position: absolute;
  inset: -4px;
  z-index: 2;
  pointer-events: none;
  border-radius: 50%;
  border: 2px solid rgba(181,217,235,.45);
  box-shadow:
    inset 0 1px 2px rgba(197,226,246,.24),
    0 0 0 3px rgba(7,20,35,.80),
    0 0 0 5px rgba(91,129,155,.53),
    0 0 15px rgba(57,146,225,.17);
  animation: ca43c-r5-steel-shimmer 8s ease-in-out infinite alternate;
}
/* Aro de energia internamente chanfrado com brilho continuo. */
#menu .cinematic-lobby .cin-hero-platform::after {
  content: '';
  position: absolute;
  inset: 5.2% 4.4%;
  z-index: 3;
  pointer-events: none;
  border-radius: 50%;
  border: clamp(3px,.38vw,6px) solid #ffb94e;
  background: transparent;
  box-shadow:
    0 0 0 2px #4e2a10,
    0 0 0 4px #081523c4,
    0 0 7px 2px rgba(255,184,75,.85),
    0 0 27px 3px rgba(255,126,27,.48),
    inset 0 0 5px 1px #ffe2a8b3,
    inset 0 0 19px 1px rgba(255,150,40,.25);
  opacity: 1;
  animation: ca43c-r5-neon-breathe 5.8s ease-in-out infinite alternate;
}
/* Miolo da plataforma de aco escovado, com marcas discretas de usinagem. */
#menu .cinematic-lobby .cin-hero-platform > span {
  display: block;
  position: absolute;
  inset: 12% 8.2%;
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
  border: 2px solid rgba(139,178,205,.42);
  background:
    radial-gradient(ellipse at 50% 40%, rgba(80,128,157,.19), transparent 70%),
    repeating-radial-gradient(ellipse at center, rgba(165,196,221,.035) 0 1px, transparent 1px 8px),
    radial-gradient(ellipse at center,#192c41 0%,#122236 60%,#0b192b 100%);
  box-shadow:
    inset 0 3px 9px rgba(0,0,0,.51),
    inset 0 0 0 4px rgba(39,58,78,.82),
    inset 0 0 0 6px rgba(115,158,188,.20),
    0 0 0 2px rgba(4,13,25,.61);
}
@keyframes ca43c-r5-neon-breathe {
  0% { opacity: .82; filter: brightness(.94); }
  100% { opacity: 1; filter: brightness(1.14); }
}
@keyframes ca43c-r5-steel-shimmer {
  0% { opacity: .74; }
  100% { opacity: 1; }
}
@media (max-width: 700px) {
  #menu .cinematic-lobby .cin-hero-platform { border-width: 3px; }
  #menu .cinematic-lobby .cin-hero-platform::after { border-width: 3px; }
  #menu .cinematic-lobby .cin-hero-platform > span { border-width: 1px; }
}
@media (prefers-reduced-motion: reduce) {
  #menu .cinematic-lobby .cin-hero-platform::before,
  #menu .cinematic-lobby .cin-hero-platform::after { animation: none !important; }
}
/* CA43C_R5_PLATFORM_PREMIUM_END */

/* CA43C_R4_FLOOR_ALIGNMENT_BEGIN */
/* Chaos Arena 4.6.43c R4: corrige a linha do horizonte visual entre
   a garagem cinematica e a plataforma original do tanque.
   So CSS: nao altera posicao, tamanho, imagem ou canvas do tanque. */
#menu .cinematic-lobby .cinematic-hangar {
  --ca43c-floor-lift: clamp(160px, 24vh, 240px);
}
/* Base de cenario com a parte inferior suavizada: sem faixa preta vazia. */
#menu .cinematic-lobby .cinematic-hangar .ca43c-scenery::before {
  content: '';
  position: absolute;
  inset: -4%;
  background-image: linear-gradient(180deg, rgba(5,12,22,.02) 0%, rgba(7,14,27,.09) 60%, rgba(9,19,31,.36) 100%), url('./garagem_cinematica.png?v=43c-r4');
  background-repeat: no-repeat;
  background-position: center center, center calc(50% - var(--ca43c-floor-lift));
  background-size: cover, cover;
  filter: blur(9px) brightness(.77) saturate(.9);
  transform: scale(1.035);
  opacity: 1;
}
/* Imagem principal recuada nas laterais e deslocada PARA CIMA na vertical.
   A imagem de fundo continua a mesma da R2, porem seu PISO agora chega
   atras da borda da plataforma, sem a porta parecer descer ate o chao. */
#menu .cinematic-lobby .cinematic-hangar .ca43c-scenery::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('./garagem_cinematica.png?v=43c-r4');
  background-repeat: no-repeat;
  background-position: center calc(50% - var(--ca43c-floor-lift));
  background-size: min(85%, 1460px) auto;
  filter: brightness(1.06) contrast(1.035);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 72%, transparent 96%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 72%, transparent 96%);
  animation: ca43c-r4-hangar-breath 22s ease-in-out infinite alternate !important;
  opacity: 1;
}
@keyframes ca43c-r4-hangar-breath {
  0% { transform: translateX(-.15%); }
  100% { transform: translateX(.15%); }
}
/* A sombra liga a plataforma ao piso aparente. Nao muda seu tamanho/posicao. */
#menu .cinematic-lobby .cin-hero-platform {
  filter: drop-shadow(0 19px 14px rgba(0,0,0,.72)) drop-shadow(0 0 13px rgba(255,153,49,.14));
}
@media (max-width: 1050px) {
  #menu .cinematic-lobby .cinematic-hangar { --ca43c-floor-lift: clamp(115px, 20vh, 195px); }
  #menu .cinematic-lobby .cinematic-hangar .ca43c-scenery::after { background-size: 105% auto; }
}
@media (max-width: 650px) {
  #menu .cinematic-lobby .cinematic-hangar { --ca43c-floor-lift: clamp(80px, 13vh, 125px); }
  #menu .cinematic-lobby .cinematic-hangar .ca43c-scenery::after { background-size: auto 102%; }
}
@media (prefers-reduced-motion: reduce) {
  #menu .cinematic-lobby .cinematic-hangar .ca43c-scenery::after { animation: none !important; }
}
/* CA43C_R4_FLOOR_ALIGNMENT_END */
