.focus-container {
  position: relative;
  display: flex;
  gap: 1em;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 auto;
  max-width: 100%;
}

.focus-word {
  position: relative;
  font-size: 3rem;
  font-weight: 900;
  cursor: pointer;
  transition:
    filter 0.3s ease,
    color 0.3s ease;
  user-select: none;
  color: var(--text-color-primary, #1a1a1a);
}

.focus-word.manual:hover {
  filter: blur(0px) !important;
}

.focus-frame {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  box-sizing: content-box;
  border: none;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1;
}

.corner {
  position: absolute;
  width: 1rem;
  height: 1rem;
  border: 3px solid var(--border-color, #00ff00);
  filter: drop-shadow(0px 0px 4px var(--glow-color, rgba(0, 255, 0, 0.6)));
  border-radius: 3px;
  transition: none;
  box-sizing: border-box;
}

.top-left {
  top: -10px;
  left: -10px;
  border-right: none;
  border-bottom: none;
}

.top-right {
  top: -10px;
  right: -10px;
  border-left: none;
  border-bottom: none;
}

.bottom-left {
  bottom: -10px;
  left: -10px;
  border-right: none;
  border-top: none;
}

.bottom-right {
  bottom: -10px;
  right: -10px;
  border-left: none;
  border-top: none;
}

/* Темная тема */
html.dark .focus-word {
  color: var(--text-color-primary, #f1f1f1);
}

/* Pro тема */
html.pro .focus-word {
  color: var(--text-color-primary, #ffffff);
}

html.pro .corner {
  border-color: var(--aurora-1, #10b981);
  filter: drop-shadow(0px 0px 4px var(--aurora-1, rgba(16, 185, 129, 0.6)));
}

/* Адаптивность */
@media (max-width: 768px) {
  .focus-word {
    font-size: 2rem;
  }

  .corner {
    width: 0.8rem;
    height: 0.8rem;
    border-width: 2px;
  }

  .top-left {
    top: -8px;
    left: -8px;
  }

  .top-right {
    top: -8px;
    right: -8px;
  }

  .bottom-left {
    bottom: -8px;
    left: -8px;
  }

  .bottom-right {
    bottom: -8px;
    right: -8px;
  }
}

@media (max-width: 480px) {
  .focus-word {
    font-size: 1.5rem;
  }

  .focus-container {
    gap: 0.5em;
  }
}
