* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: linear-gradient(180deg, #e90000, #500000, #020000);
  color: white;
  text-align: center;
  padding: 20px 0;
}

.topo h1 {
  font-size: 1.4rem;
}

.subtitulo {
  opacity: .8;
  margin-bottom: 20px;
}

.options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 0 5% 80px ;
}

/* CARTA */
.option {
position: relative;
width: 160px;
height: 240px;
border-radius: 12px;
overflow: hidden;
background: #2b0010;
}

.option.active {
  position: relative;
  z-index: 999;
  transform: scale(1.03);
  box-shadow: 0 0 0 3px rgba(255, 0, 80, 0.6);
}

.option img.conteudo {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover; 
}

.option canvas {
position: absolute;
inset: 0;
cursor: pointer;
touch-action: pan-y;
}

/* IMAGEM POR BAIXO */
.conteudo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}


/* overlay fullscreen */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: .4s ease;
  z-index: 999;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.overlay img {
  max-width: 80vw;
  max-height: 80vh;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(255,0,0,.4);
  animation: zoomIn .4s ease;
}

@keyframes zoomIn {
  from { transform: scale(.85); opacity: 0 }
  to { transform: scale(1); opacity: 1 }
}
