permita scroll do resultado @font-face {
  font-family: 'garamondt';
  src: url('https://arquivoblush.neocities.org/assetsachados/webfontkit-20251105-113613/garamondt-regular-webfont.woff') format('woff');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'garamondt';
  src: url('https://arquivoblush.neocities.org/assetsachados/webfontkit-20251105-113613/garamondt-italic-webfont.woff') format('woff');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}


::selection { background: #FAF0F5; color: #000; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  background-image: url('https://arquivoblush.neocities.org/assetsachados/bg.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: #fff;
  font-family: serif;
  position: fixed;
  inset: env(safe-area-inset-top,0) env(safe-area-inset-right,0) env(safe-area-inset-bottom,0) env(safe-area-inset-left,0);
}

/* Tela inicial */
#intro-overlay {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}



#intro-box {
  width: 90%;
  max-width: 520px;
  text-align: center;
  font-family: 'garamondt', serif;
  color: black;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 20px;
  box-sizing: border-box;
}

#intro-box h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 400;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#intro-box p { margin: 0; font-size: 1.1rem; }

#intro-nome {
  width: 85%;
  max-width: 320px;
  padding: 8px 12px;
  border: 1px solid black;
  font-family: 'garamondt', serif;
  font-style: italic;
  font-size: 1rem;
  text-align: center;
  color: black;
  background: white;
  box-sizing: border-box;
}

#intro-entrar {
  padding: 4px 18px;
  border: 1px solid black;
  background: white;
  color: black;
  cursor: pointer;
  font-family: 'garamondt', serif;

  transition: all 0.2s ease;
}
#intro-entrar:hover { background: black; color: white; }

/* Área principal */
#center-text {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 15;
  pointer-events: none;
  display: flex; flex-direction: column; align-items: center;
}

#contador {
  font-family: 'GaramondT', serif;
  font-style: italic;
  font-weight: 550;
  font-size: clamp(1.2rem, 2vw, 1rem);
  color: white;
  margin: 0;
  white-space: normal;
  text-align: center;
  text-transform: uppercase; /* Para deixar o texto em caixa alta */
  position: relative; /* ou fixed se for header fixo */
  z-index: 1000;      /* bem acima das imagens */
}

  /* Efeito de aura/brilho no contorno */
  text-shadow: 0 0 5px rgba(255, 255, 255, 1), 0 0 7px rgba(255, 255, 255, 0.7), 0 0 10px rgba(255, 255, 255, 0.5);

  line-height: 1.2;
  word-wrap: break-word; /* Garante quebra de palavras longas */
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  #contador {
    font-size: clamp(0.9rem, 5vw, 1.2rem); /* Tamanho menor para caber no mobile */
    line-height: 1.3;
  }
}


#main-button {
  position: fixed; bottom: 60px; left: 50%; transform: translateX(-50%);
  background: white; color: black; border: 1px solid black;
  font-family: 'garamondt', serif;  font-size: 0.9rem; font-style: italic;
  padding: 4px 14px; cursor: pointer;
  display: block; z-index: 10; transition: all 0.2s ease;
}
#main-button:hover { background: black; color: white; }

/* Imagens */
.random-img {
  position: absolute; max-width: 200px; z-index: 1; border: 3px solid transparent;
  transform-origin: center center; animation-name: slowSpin; animation-timing-function: linear; animation-iteration-count: infinite;
  transition: all 0.3s ease; cursor: grab;
}
@keyframes slowSpin {
  from { transform: rotate(0deg) scale(var(--scale,1)); }
  to   { transform: rotate(var(--spin-amount,360deg)) scale(var(--scale,1)); }
}
.selected { filter: brightness(1.6) drop-shadow(0 0 55px rgba(255,255,255,1)); z-index: 2; animation: pulse 2s infinite ease-in-out; }
@keyframes pulse {
  0%{ filter: brightness(1.6) drop-shadow(0 0 45px rgba(255,255,255,0.9)); }
  50%{ filter: brightness(1.9) drop-shadow(0 0 70px rgba(255,255,255,1)); }
  100%{ filter: brightness(1.6) drop-shadow(0 0 45px rgba(255,255,255,0.9)); }
}
@media (max-width:768px){ .random-img { max-width:160px; } }
@media (max-width:480px){ .random-img { max-width:130px; } }



/* Barra de seleção */
#selected-bar {
  position: fixed; top: 16px; left: 18px;
  background: black; backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 0;
  font-family: 'garamondt', serif; font-style: italic; font-size: 0.95rem; color: white;
  padding: 8px 12px; z-index: 20; opacity: 0; transform: translateY(-6px);
  transition: opacity 250ms ease, transform 250ms ease; pointer-events: none; white-space: nowrap;
  display: flex; align-items: center; gap: 10px;
}
#selected-bar.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#selected-bar .label { opacity: 0.95; margin-right: 6px; white-space: nowrap; letter-spacing: 0.02em; }
#selected-bar .names { opacity: 0.95; white-space: nowrap; max-width: 60vw; overflow: hidden; text-overflow: ellipsis; }
#selected-bar .names span { cursor: pointer; margin-right: 4px; padding: 2px 4px; background: rgba(255,255,255,0.1); border-radius: 0; }
/* ícone “x” para excluir ao clicar */
#selected-bar .names span::after { content: " ×"; font-size: 0.85em; opacity: 0.75; }
#selected-bar .names span:hover::after { opacity: 1; }
@media (max-width:480px){
  #selected-bar { left: 50%; right: auto; transform: translateX(-50%) translateY(-6px); padding: 7px 10px; font-size: 0.9rem; max-width: 90%; }
  #selected-bar.visible { transform: translateX(-50%) translateY(0); }
  #selected-bar .names { max-width: 70vw; }
}

/* ------- RESULTADO ------- */
/* ------- RESULTADO ------- */

/* HEADER (agora no fluxo, não fixo) */
#result-header-fixed {
  position: relative;
  width: 100%;
  display: none;

  background: white;
  color: black;

  padding: calc(env(safe-area-inset-top,0) + 90px) 12px 24px;
  text-align: center;

  z-index: 10;
}

#result-header-fixed .result-title {
  font-family: 'garamondt', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.05;
  margin: 6px 0 0;
  letter-spacing: .3px;
}

#result-header-fixed .result-subtitle {
  font-family: 'garamondt', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.95rem, 3vw, 1.15rem);
  line-height: 1.1;
  margin: .35rem 0 0;
  opacity: .85;
}

/* OVERLAY GERAL (virou container flex, sem fixed) */
#result-overlay {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: white;
  z-index: 1002;

  display: none;
  flex-direction: column;
  align-items: center;

  padding: 24px;
  box-sizing: border-box;
  overflow-y: auto;
}

/* menos padding lateral no mobile */
@media (max-width:480px){
  #result-overlay{ padding-left: 8px; padding-right: 8px; }
}

/* POPUP */
.result-popup {
  display: flex;
  flex-direction: column;
  align-items: center;

  justify-content: flex-start;
  max-width: 800px;
  width: 90%;
  background: white;
  color: black;

  padding: 20px;
  box-sizing: border-box;
  border: none;
  box-shadow: none;
  gap: 16px;
  text-align: center;

  margin-top: 0; /* remove aquele -60px */
}

/* mobile largura total */
@media (max-width:480px){
  .result-popup{ width: 100%; padding-left: 10px; padding-right: 10px; }
}

/* WRAPPER DO RESULTADO */
.result-wrapper {
  font-family: 'garamondt', serif;
  max-width: 800px;
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;

  background: white;
  color: black;

  padding: 14px 16px 24px;
  box-sizing: border-box;

  border: 1px solid #000;
  box-shadow: none;

  overflow-x: hidden;
}

@media (max-width:480px){
  .result-wrapper{ padding-left: 8px; padding-right: 8px; max-width: 100%; }
}

.frase-visitante {
  font-weight: 590;
  font-size: 0.9rem;
  text-align: center;
  text-transform: uppercase;
  font-style: italic;
  margin: 0 0 6px;
}

.texto-final {
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.15;
  max-width: 600px;
  margin: 0 0 8px;
}

@media (max-width:480px){
  .texto-final{ max-width: none; }
}

/* IMAGENS */
.imgs-wrapper { 
  width: 100%; 
  overflow-x: auto; 
  margin-top: 28px;
}

.imgs-container {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.resultado-img {
  flex: 1 1 30%;
  max-width: 200px;
  height: auto;
  object-fit: contain;
}

@media (max-width:768px){
  .resultado-img { flex: 1 1 40%; max-width: 140px; }
}

@media (max-width:480px){
  .resultado-img { flex: 1 1 30%; max-width: 90px; }
}

/* FOOTER (agora no fluxo, logo após o resultado) */
#result-footer {
  position: relative;
  width: 100%;

  display: flex;
  justify-content: center;
  gap: 6px;

  padding: 12px 8px 16px;
  margin: 0;
  box-sizing: border-box;

  z-index: 5;
}

#result-footer button,
#result-footer .arquivo-link {
  flex: 0 0 auto;
  padding: 4px 10px;
  font-size: 0.85rem;
  font-family: 'garamondt', serif;
  font-style: italic;

  background: white;
  color: black;

  border: 1px solid black;
  border-radius: 0;

  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;

  transition: all 0.2s ease;
}

#result-footer button:hover,
#result-footer .arquivo-link:hover {
  background: black;
  color: white;
}

/* BLEND MODES */
.random-img[src*="cathy-bruni"],
.random-img[src*="geleca"],
.random-img[src*="pistola"] {
  mix-blend-mode: hard-light;
}
