.onlybrains-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.onlybrains-overlay[hidden] {
  display: none;
}

.onlybrains-card {
  position: relative;
  background: #ffffff;
  border: 4px solid #ff0000;
  border-radius: 0;
  width: 500px;
  max-width: 100%;
  height: 500px;
  max-height: calc(100vh - 2rem);
  box-sizing: border-box;
  box-shadow: 8px 8px 0px rgba(0, 0, 0, 1);
  padding: 1.5rem;
  color: #000000;
  font-family: 'Times New Roman', Times, serif;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  overflow: hidden;
}

.onlybrains__close {
  position: absolute;
  top: 8px;
  right: 8px;       /* was 8xpx */
  background: #ff0000;
  color: #ffffff;
  border: 3px solid #000000;
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.6);
  transition: transform 0.15s ease;
}

.onlybrains__close:hover {
  transform: scale(1.1) rotate(-5deg);
  background: #cc0000;
}

.onlybrains__logo {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.onlybrains__body {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1rem;
  width: 100%;
}

.onlybrains__varek {
  width: 140px;
  height: auto;
  object-fit: contain;
  border: 2px dashed #0000ff;
  padding: 4px;
  background: #e0e0e0;
  align-self: stretch;
}

.onlybrains__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.onlybrains__text {
  flex: 1;
  background: #ffff00;
  padding: 10px;
  border: 1px dotted #000000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.onlybrains__title {
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.1rem;
  font-weight: bold;
  color: #000000;
  margin: 0;
  text-transform: none;
  line-height: 1.2;
}

.onlybrains__desc {
  font-size: 0.8rem;
  line-height: 1.3;
  margin: 0;
  font-weight: bold;
  color: #000000;
}

.btn-onlybrains-sub {
  display: block;
  background: #00ff00;
  color: #000000;
  font-family: 'Arial Black', Impact, sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  padding: 0.75rem;
  border: 3px outset #00cc00;
  text-decoration: none;
  cursor: pointer;
  animation: scam-flash 1.2s infinite;
}

.btn-onlybrains-decline {
  background: transparent;
  color: #0000ee;
  border: none;
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
  font-family: Arial, sans-serif;
}

@keyframes scam-flash {
  0%, 100% { background: #00ff00; }
  50% { background: #ff0000; color: #ffffff; }
}

@media (max-width: 480px) {
  .onlybrains-card {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 2rem);
    padding: 1.25rem 1rem;
    gap: 0.5rem;
    justify-content: flex-start;
    overflow-y: auto;
  }
  
  .onlybrains__body {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .onlybrains__varek {
    width: 180px;                /* bigger than 120px */
    height: 180px;               /* explicit height — makes it square */
    aspect-ratio: 1 / 1;
    object-fit: cover;           /* crop to fill, no distortion */
    object-position: center top; /* show top of image (Varek's face) */
    align-self: center;
    border: 2px dashed #0000ff;  /* keep the frame on mobile now that it's bigger */
    padding: 4px;
    background: #e0e0e0;
  }
  
  .onlybrains__logo {
    max-width: 320px;            /* bigger than 240px */
    margin-top: 1rem;
  }

  .onlybrains__close {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    top: 8px;
    right: 8px;
  }

  .onlybrains__title {
    font-size: 1rem;
  }

  .onlybrains__desc {
    font-size: 0.75rem;
  }

  .btn-onlybrains-sub {
    font-size: 0.85rem;
    padding: 0.6rem;
  }
}