/* ===== AVIATOR: raios solares com origem ajustável ===== */
:root{
  --ray-origin-x: 0%;      /* origem desktop: canto inferior esquerdo */
  --ray-origin-y: 100%;
  --ray-strong: rgba(255,255,255,.04);
  --ray-soft:   rgba(255,255,255,.02);
}

/* Base escura */
body{
  margin:0;
  background:#0b0b0b;
  min-height:100vh;
  overflow-x:hidden;
  font-family: Arial, sans-serif;
}

/* Raios (camada principal) */
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;

  /* Duas camadas de raios para textura e densidade */
  background-image:
    repeating-conic-gradient(
      from -8deg at var(--ray-origin-x) var(--ray-origin-y),
      var(--ray-strong) 0deg 1.2deg,      /* largura do raio forte */
      transparent       1.2deg 12deg      /* espaçamento entre raios */
    ),
    repeating-conic-gradient(
      from -6deg at var(--ray-origin-x) var(--ray-origin-y),
      var(--ray-soft)   0deg .8deg,       /* raios mais finos/sutis */
      transparent       .8deg 6deg
    );

  /* dá um boost no contraste/visibilidade */
  filter: contrast(115%) brightness(110%);
}

/* Vinheta leve (evite escurecer demais o topo) */
body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-3;
  background:
    radial-gradient(ellipse 160% 120% at 0% 100%,
      transparent 35%, rgba(0,0,0,.25) 100%);
}

/* ===== SEÇÃO DE RESULTADOS AVIATOR ===== */

/* Container principal dos resultados */
.results {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px auto;
    padding: 15px;
    max-width: 1200px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    border: 2px solid #00bcd4;
    z-index: 2;
    position: relative;
    backdrop-filter: blur(5px);
}

/* Caixas de resultado para Aviator */
.result-box {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 10px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

/* Conteúdo interno das caixas */
.result-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    width: 100%;
}

/* Ícone do avião */
.aviator-icon {
    font-size: 18px;
    margin-bottom: 2px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

/* Label do resultado - MULTIPLICADOR */
.result-label {
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 0.3px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

/* ===== CORES ORIGINAIS DO JOGO AVIATOR ===== */

/* Até 1.99x - AZUL como no jogo */
.result-box.blue-multiplier {
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    border-color: #42a5f5;
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.4);
    color: white;
}

/* De 2.00x até 9.99x - ROXO como no jogo */
.result-box.purple-multiplier {
    background: linear-gradient(135deg, #8e24aa, #6a1b9a);
    border-color: #ab47bc;
    box-shadow: 0 4px 12px rgba(142, 36, 170, 0.4);
    color: white;
}

/* Acima de 10.00x - ROSA como no jogo */
.result-box.pink-multiplier {
    background: linear-gradient(135deg, #e91e63, #c2185b);
    border-color: #f06292;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4);
    color: white;
}

/* Multiplicadores lendários (>=50x) - Efeito especial */
.result-box.legendary-multiplier {
    background: linear-gradient(135deg, #ff1744, #d500f9, #651fff);
    border-color: #ff4081;
    box-shadow: 0 0 30px rgba(255, 23, 68, 0.8);
    animation: legendaryFlash 1s ease-in-out infinite alternate;
    color: white;
}

@keyframes legendaryFlash {
    0% {
        box-shadow: 0 0 30px rgba(255, 23, 68, 0.8);
        transform: scale(1.15);
    }
    50% {
        box-shadow: 0 0 40px rgba(213, 0, 249, 0.9);
        transform: scale(1.2);
    }
    100% {
        box-shadow: 0 0 35px rgba(101, 31, 255, 0.8);
        transform: scale(1.18);
    }
}

/* Animação para resultado mais recente */
.result-box.new-result {
    animation: newResultAviator 3s ease-in-out;
    transform: scale(1.15);
    box-shadow: 0 0 30px rgba(0, 188, 212, 0.9);
    border-color: #00bcd4;
}

@keyframes newResultAviator {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 188, 212, 0.9);
    }
    15% {
        transform: scale(1.25) rotate(5deg);
        box-shadow: 0 0 30px 8px rgba(0, 188, 212, 0.7);
    }
    30% {
        transform: scale(1.1) rotate(-3deg);
        box-shadow: 0 0 35px 15px rgba(0, 188, 212, 0.5);
    }
    45% {
        transform: scale(1.2) rotate(2deg);
        box-shadow: 0 0 25px 5px rgba(0, 188, 212, 0.8);
    }
    60% {
        transform: scale(1.15) rotate(-1deg);
        box-shadow: 0 0 40px 10px rgba(0, 188, 212, 0.6);
    }
    75% {
        transform: scale(1.18) rotate(1deg);
        box-shadow: 0 0 20px 5px rgba(0, 188, 212, 0.9);
    }
    100% {
        transform: scale(1.15) rotate(0deg);
        box-shadow: 0 0 30px rgba(0, 188, 212, 0.9);
    }
}

/* Hover effect */
.result-box:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

/* ===== SEÇÃO DE SINAL ===== */

.sinal-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    z-index: 1;
}

.sinal-gerado {
    width: 380px;
    height: 40px;
    border: 1px solid orange;
    background-color: #1c1b1d;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sinal-text {
    font-size: 14px;
    color: rgb(21, 255, 0);
    margin: 0;
}

.sinal-gale-container {
    display: flex;
    justify-content: space-between;
    width: 380px;
    margin-top: 20px;
    gap: 30px;
}

.sinal-div,
.gale-div {
    width: 150px;
    border: 1px solid orange;
    background-color: #1c1b1d;
    border-radius: 15px;
    padding: 10px;
}

.sinal-title,
.gale-title {
    font-size: 15px;
    color: rgb(255, 255, 255);
    margin: 0;
    text-align: center;
}

.sinal-data,
.gale-data {
    font-size: 14px;
    margin: 15px 0;
    color: #20ff45;
    text-align: center;
}

.gale-data {
    font-size: 25px;
}

/* ===== MENSAGENS - TAMANHO OTIMIZADO ===== */

#messages {
    margin-top: 15px;                    /* ✅ REDUZIDO: 20px → 15px */
    padding: 0;
    list-style-type: none;
    text-align: left;
    max-width: 500px;                    /* ✅ REDUZIDO: 600px → 500px */
    margin: 15px auto;                   /* ✅ REDUZIDO: 20px → 15px */
    border: 1px solid orange;
    z-index: 2;
    border-radius: 12px;                 /* ✅ REDUZIDO: 15px → 12px */
    box-shadow: 0 0 6px 2px rgba(255, 165, 0, 0.4);  /* ✅ REDUZIDO sombra */
    background-color: #f9f9f9;
}

#messages li {
    padding: 12px 15px;                  /* ✅ REDUZIDO: 20px → 12px 15px */
    background-color: #fafafa;
    border-radius: 12px;                 /* ✅ REDUZIDO: 15px → 12px */
    margin-bottom: 3px;                  /* ✅ REDUZIDO: 5px → 3px */
    text-align: center;
    font-size: 14px;                     /* ✅ ADICIONADO: tamanho fixo */
    line-height: 1.3;                    /* ✅ ADICIONADO: altura de linha menor */
}

#messages li:not(:last-child) {
    border-bottom: 1px solid #ccc;
}

/* Mensagens específicas - Menores */
#messages li span[style*="font-size: 20px"] {
    font-size: 16px !important;          /* ✅ FORÇAR: 20px → 16px */
}

#messages li span[style*="font-size: 20px"] strong {
    font-size: 15px !important;          /* ✅ FORÇAR: interno menor */
}

/* ===== ANIMAÇÕES DE TEXTO ===== */

.loading-text {
    font-size: 14px;
}

.loading-validada {
    background: linear-gradient(45deg, #00bcd4, #0097a7, #00bcd4);
    background-size: 200% 200%;
    color: white;
    padding: 10px 18px;                  /* ✅ REDUZIDO: 15px 25px → 10px 18px */
    border-radius: 10px;                 /* ✅ REDUZIDO: 12px → 10px */
    font-weight: bold;
    font-size: 14px;                     /* ✅ REDUZIDO: 16px → 14px */
    text-align: center;
    box-shadow: 0 3px 12px rgba(0, 188, 212, 0.3);
    animation: gradientShift 2s ease-in-out infinite;
}

.loading-analisando {
    background: linear-gradient(45deg, #ff5722, #ff9800, #ff5722);
    background-size: 200% 200%;
    color: white;
    padding: 10px 18px;                  /* ✅ REDUZIDO: 15px 25px → 10px 18px */
    border-radius: 10px;                 /* ✅ REDUZIDO: 12px → 10px */
    font-weight: bold;
    font-size: 14px;                     /* ✅ REDUZIDO: 16px → 14px */
    text-align: center;
    box-shadow: 0 3px 12px rgba(255, 87, 34, 0.3);
    animation: gradientShift 2s ease-in-out infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== ELEMENTOS UTILITÁRIOS ===== */

.logo-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.logo {
    width: 20%;
    max-width: 150px;
    height: auto;
}

.footer {
    text-align: center;
    padding: 30px;
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.493);
    font-size: 12px;
}

.guima-link {
    color: #abfc4ef1;
    font-size: 12px;
    text-decoration: none;
}

.guima-link:hover {
    text-decoration: underline;
}

.home-button {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 50%;
    padding: 4px;
    background-color: rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-button img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.home-button:hover {
    border-color: #00bcd4;
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.8);
}

.home-button:hover img {
    filter: brightness(1.2);
    transform: scale(1.1);
}

/* CSS IFRAME CASA DE APOSTA */
.iframe {
    border-radius: 15px; 
    align-items: center;
    align-content: center;
    margin-bottom: 1em;
    margin-left: calc(50% - 600px);
    width: 1200px;
    height: 1000px;
}

/* ===== RESPONSIVIDADE ===== */

/* Mobile: raios mais aparentes no topo */
@media (max-width: 768px){
  :root{
    --ray-origin-x: -30%;   /* mais à esquerda */
    --ray-origin-y: 115%;   /* um pouco abaixo */
  }

  body::before{
    filter: contrast(125%) brightness(115%);
    background-image:
      repeating-conic-gradient(
        from -8deg at var(--ray-origin-x) var(--ray-origin-y),
        rgba(255,255,255,.055) 0deg 1.4deg,
        transparent             1.4deg 12deg
      ),
      repeating-conic-gradient(
        from -6deg at var(--ray-origin-x) var(--ray-origin-y),
        rgba(255,255,255,.03)  0deg 1deg,
        transparent            1deg 6deg
      );
  }

  body::after{
    background:
      radial-gradient(ellipse 150% 110% at 0% 100%,
        transparent 30%, rgba(0,0,0,.2) 100%);
  }

  /* 🎯 RESULTADOS - MENORES NO MOBILE */
  .results {
      gap: 4px;                    /* ✅ REDUZIDO: 5px → 4px */
      padding: 8px;                /* ✅ REDUZIDO: 10px → 8px */
      max-width: 95%;
      margin: 15px auto;           /* ✅ REDUZIDO: 20px → 15px */
  }
  
  .result-box {
      width: 35px;                 /* ✅ REDUZIDO: 40px → 35px */
      height: 35px;                /* ✅ REDUZIDO: 40px → 35px */
      border-radius: 8px;
  }
  
  .aviator-icon {
      font-size: 12px;             /* ✅ REDUZIDO: 14px → 12px */
      margin-bottom: 1px;
  }
  
  .result-label {
      font-size: 6px;              /* ✅ REDUZIDO: 7px → 6px */
      letter-spacing: 0.1px;
  }

  /* 🎯 CONTAINER DE SINAL - MENOR */
  .sinal-container {
      margin-top: 8px;
  }
  
  .sinal-gerado {
      width: 320px;                /* ✅ REDUZIDO: 380px → 320px */
      height: 42px;                /* ✅ REDUZIDO: 50px → 42px */
      border-radius: 12px;
  }
  
  .sinal-text {
      font-size: 16px;             /* ✅ REDUZIDO: 20px → 16px */
  }
  
  /* 🎯 CAIXAS SINAL/PROTEÇÃO - MENORES */
  .sinal-gale-container {
      width: 320px;                /* ✅ REDUZIDO: 380px → 320px */
      margin-top: 15px;
      gap: 20px;                   /* ✅ REDUZIDO: 30px → 20px */
  }
  
  .sinal-div,
  .gale-div {
      width: 130px;                /* ✅ REDUZIDO: 150px → 130px */
      padding: 8px;
      border-radius: 12px;
  }
  
  .sinal-title,
  .gale-title {
      font-size: 13px;             /* ✅ REDUZIDO: 15px → 13px */
  }
  
  .sinal-data {
      font-size: 12px;             /* ✅ REDUZIDO: 14px → 12px */
      margin: 12px 0;
  }
  
  .gale-data {
      font-size: 20px;             /* ✅ REDUZIDO: 25px → 20px */
  }

  /* 🎯 MENSAGENS - MENORES */
  #messages {
      max-width: 95%;
      margin: 12px auto;
      border-radius: 10px;
  }
  
  #messages li {
      padding: 10px 12px;          /* ✅ REDUZIDO: 12px 15px → 10px 12px */
      border-radius: 10px;
      font-size: 12px;             /* ✅ REDUZIDO: 14px → 12px */
      line-height: 1.2;
  }

  /* Mensagens específicas - Mobile menor */
  #messages li span[style*="font-size: 20px"] {
      font-size: 13px !important;  /* ✅ MOBILE: 16px → 13px */
  }

  #messages li span[style*="font-size: 20px"] strong {
      font-size: 12px !important;  /* ✅ MOBILE: 15px → 12px */
  }

  /* 🎯 ANIMAÇÕES - MENORES */
  .loading-validada,
  .loading-analisando {
      padding: 8px 15px;           /* ✅ MOBILE: 10px 18px → 8px 15px */
      font-size: 12px;             /* ✅ MOBILE: 14px → 12px */
      border-radius: 8px;
  }

  /* 🎯 LOGO - MENOR */
  .logo {
      width: 15%;
      max-width: 120px;
  }
  
  .logo-container {
      margin-top: 15px;
  }

  /* 🎯 IFRAME - AJUSTADO */
  .iframe{
      margin-left: calc(50% - 160px);  /* ✅ Mais centralizado */
      width: 320px;                    /* ✅ REDUZIDO: 360px → 320px */
      height: 550px;                   /* ✅ REDUZIDO: 600px → 550px */
  }
}

/* TABLET */
@media (max-width: 1024px){
    .iframe{
        margin-left: calc(50% - 384px);
        width: 768px;
        height: 800px; 
    }
    
    .results {
        gap: 6px;
        padding: 12px;
        max-width: 95%;
    }
    
    .result-box {
        width: 45px;
        height: 45px;
    }
    
    .aviator-icon {
        font-size: 16px;
    }
    
    .result-label {
        font-size: 8px;
        letter-spacing: 0.2px;
    }
}

/* MOBILE PEQUENO - Ultra compacto */
@media (max-width: 480px) {
    .sinal-gerado {
        width: 280px;
        height: 38px;
    }
    
    .sinal-text {
        font-size: 14px;
    }
    
    .sinal-gale-container {
        width: 280px;
    }
    
    .sinal-div,
    .gale-div {
        width: 115px;
    }
    
    .result-box {
        width: 32px;
        height: 32px;
    }
    
    .aviator-icon {
        font-size: 10px;
    }
    
    .result-label {
        font-size: 5px;
    }

    #messages {
        margin: 10px auto;
    }
    
    #messages li {
        padding: 8px 10px;
        font-size: 11px;
    }

    /* Mobile pequeno - mensagens específicas */
    #messages li span[style*="font-size: 20px"] {
        font-size: 12px !important;
    }

    #messages li span[style*="font-size: 20px"] strong {
        font-size: 11px !important;
    }
}

@media (max-width: 768px){
    .iframe{
        margin-left: calc(50% - 180px);
        width: 360px;
        height:600px; 
    }
    
    /* Ajustes para resultados em mobile */
    .results {
        gap: 8px;
        padding: 10px;
        max-width: 95%;
        backdrop-filter: blur(8px);
        background: rgba(0, 0, 0, 0.6);
    }
    
    .result-box {
        width: 40px;
        height: 40px;
    }
    
    .aviator-icon {
        font-size: 10px;
        margin-bottom: 2px;
    }
    
    .result-label {
        font-size: 9px;
        letter-spacing: 0.2px;
    }
    
    .ultimosnumeros {
        font-size: 12px;
    }
    
    .sinal-container {
        backdrop-filter: blur(5px);
    }
    
    #messages {
        backdrop-filter: blur(3px);
        background-color: rgba(249, 249, 249, 0.95);
    }
}
