.opponent-selector-buttons {
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
	gap: 7px;
	margin-bottom: 7px;
}

.cards-selector {
	overflow-y: auto;
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: center;
    max-height: 330px;
}

@media (max-height: 810px) {
    .cards-selector {
      max-height: 215px;
    }
}

.element-card {
  cursor: pointer;
	text-align: center;
	justify-items: center;
}

.element-card:hover {
  background: #1e3247;
  border-color: #5e8ac0;
  transform: translateY(-3px);
  box-shadow: 0 9px 0 #0b141e, 0 0 15px #2f5a9c55;
}

.element-card.selected {
  background: #1c3d5e;
  border-color: #60a0ff;
  box-shadow: 0 0 0 3px #4080e080, 0 8px 0 #0a1a2a;
  transform: translateY(-2px);
  color: white;
}

.element-card.self-card {
    background: green;
}

.element-card.self-card.selected {
    background: darkgreen;
}

/* ========= АНИМАЦИОННЫЕ ЭЛЕМЕНТЫ ========= */
.animation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.particle {
    position: absolute;
    pointer-events: none;
    will-change: transform, opacity;
    animation: floatParticle 0.8s ease-out forwards;
    font-size: 1.8rem;
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.2));
}

@keyframes floatParticle {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(0.6);
    }
    50% {
        opacity: 0.9;
        transform: translate(var(--tx, 40px), var(--ty, -80px)) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx-end, 80px), var(--ty-end, -160px)) scale(0.4);
    }
}

.shockwave {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(255,215,0,0.7) 0%, rgba(255,255,255,0) 80%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
    z-index: 1001;
    animation: expandShock 0.5s ease-out forwards;
}

@keyframes expandShock {
    to {
        transform: translate(-50%, -50%) scale(30);
        opacity: 0;
    }
}

.btn-glow {
    animation: btnGlowPulse 0.4s ease-out;
}

@keyframes btnGlowPulse {
    0% { box-shadow: 0 0 0 0 rgba(0,0,0,0.2), 0 10px 0 #2c6e4a; }
    50% { box-shadow: 0 0 0 12px rgba(111,207,151,0.6), 0 10px 0 #2c6e4a; }
    100% { box-shadow: 0 0 0 0 rgba(111,207,151,0), 0 10px 0 #2c6e4a; }
}

.btn-red-glow {
    animation: btnRedGlowPulse 0.4s ease-out;
}

@keyframes btnRedGlowPulse {
    0% { box-shadow: 0 0 0 0 rgba(0,0,0,0.2), 0 10px 0 #a14444; }
    50% { box-shadow: 0 0 0 12px rgba(244,162,162,0.7), 0 10px 0 #a14444; }
    100% { box-shadow: 0 0 0 0 rgba(244,162,162,0), 0 10px 0 #a14444; }
}

.element-card-pulse {
  animation: cardSelectFlash 0.4s ease;
}

@keyframes cardSelectFlash {
  0% { background: #d3e4ff; transform: scale(1);}
  50% { background: #f9e45b; transform: scale(1.02); box-shadow: 0 0 0 4px #ffd966; }
  100% { background: #d3e4ff; transform: scale(1);}
}

/* ------------------------------------ */

.make-message-button {
	margin-bottom: 13px;
	font-size: 2.5rem;
}

.content-top {
	margin-top: 13px;
	font-size: 1.5rem;
	justify-items: center;
}

.promo-blocks {
	display: flex;
	gap: 13px;
	/* font-size: 3.5rem; */
	justify-items: center;
	justify-content: space-around;
}

.promo-block {
	justify-items: center;
	flex: 1;
}

.promo-block-icon {
	font-size: 2.1rem;
}

.promo-block-text {
	text-align: center;
	font-size: 1.1rem;
}

.emodji_selector-buttons {
	display: flex;
  overflow-x: auto;
  gap: 3px;
  margin-bottom: 7px;
}

.emodji_selector-buttons > * {
  font-size: 1.5rem;
}

.emodji_selector-cards {
  display: grid;
  /* flex-wrap: wrap; */
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  /* gap: 3px; */
}

.emodji-card {
  font-size: 1.5rem;
  text-align: center;
  cursor: pointer;
  /* flex: 1fr; */
}

.profile_window {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 13px;
}

/* Основной контейнер экрана загрузки */
.loading-screen {
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    backdrop-filter: blur(2px);
    height: 100%;
}

/* Контейнер для анимации спиннера */
.spinner-container {
    margin-bottom: 2rem;
    position: relative;
}

/* Основной вращающийся элемент (кольцо) */
.spinner {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(255, 255, 255, 0.15);
    border-top: 5px solid #4f9eff;
    border-right: 5px solid #9b5eff;
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    box-shadow: 0 0 15px rgba(79, 158, 255, 0.4);
}

/* Дополнительное пульсирующее кольцо снаружи */
.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(79, 158, 255, 0.1);
    animation: pulse 1.8s ease-out infinite;
    z-index: -1;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.warning-message {
    color: #ffb270;
    font-size: 0.95rem;
    text-align: center;
    margin-top: 8px;
    min-height: 24px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.shop_menu {
  display: flex;
  flex-direction: column;
  gap: 13px;
}