/* ==========================================================================
   СТИЛИ КАРТОЧЕК ВАЙФУ И РЕДКОСТЕЙ (R, SR, SSR, UR)
   ========================================================================== */

button, input, select, textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-family: inherit;
}

/* ================= СЕТКА КАРТОЧЕК ================= */
.waifu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

/* Базовая карточка вайфу */
.waifu-card {
  background: var(--card-gradient);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.waifu-card:active {
  transform: scale(0.97);
}

/* ================= РЕДКОСТИ (RARITY) ================= */

/* R (Редкая - Синий акцент) */
.waifu-card.rarity-R {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}
.waifu-card.rarity-R .card-avatar-box {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-color: rgba(56, 189, 248, 0.4);
}
.rarity-badge.badge-R {
  background: rgba(2, 132, 199, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

/* SR (Супер-редкая - Фиолетовый акцент) */
.waifu-card.rarity-SR {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.2);
}
.waifu-card.rarity-SR .card-avatar-box {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-color: rgba(168, 85, 247, 0.5);
}
.rarity-badge.badge-SR {
  background: rgba(168, 85, 247, 0.25);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.5);
}

/* SSR (Сверх-редкая - Золотое сияние) */
.waifu-card.rarity-SSR {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.25);
}
.waifu-card.rarity-SSR .card-avatar-box {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-color: rgba(245, 158, 11, 0.6);
}
.rarity-badge.badge-SSR {
  background: var(--gold-gradient);
  color: #000;
  font-weight: 800;
  border: none;
}

/* UR (Ультра-редкая - Радужное голографическое свечение) */
.waifu-card.rarity-UR {
  border: 1px solid transparent;
  background-image: linear-gradient(#131b2e, #131b2e), linear-gradient(135deg, #ec4899, #8b5cf6, #06b6d4, #f59e0b);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.35);
  animation: rainbowBorder 6s linear infinite alternate;
}
@keyframes rainbowBorder {
  0% { box-shadow: 0 0 16px rgba(236, 72, 153, 0.4); }
  50% { box-shadow: 0 0 22px rgba(139, 92, 246, 0.5); }
  100% { box-shadow: 0 0 18px rgba(6, 182, 212, 0.4); }
}
.waifu-card.rarity-UR .card-avatar-box {
  background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, rgba(139, 92, 246, 0.2) 100%);
  border: 1px solid rgba(236, 72, 153, 0.6);
}
.rarity-badge.badge-UR {
  background: linear-gradient(135deg, #ec4899, #8b5cf6, #3b82f6);
  color: #fff;
  font-weight: 800;
  border: none;
  box-shadow: 0 0 8px rgba(236, 72, 153, 0.6);
}

/* ================= ЭЛЕМЕНТЫ ВНУТРИ КАРТЫ ================= */
.card-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.rarity-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.count-badge {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: var(--hint-color);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  font-family: 'JetBrains Mono', monospace;
}

.card-avatar-box {
  width: 100%;
  height: 110px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.6);
}

.fav-avatar-box {
  width: 62px;
  height: 62px;
  min-width: 62px;
  font-size: 32px;
  margin-bottom: 0;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(236, 72, 153, 0.4);
}

.character-img,
.modal-card-img,
.summon-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: inherit;
  display: block;
  text-indent: -9999px;
  color: transparent;
  transition: transform 0.25s ease;
}

.waifu-card:hover .character-img {
  transform: scale(1.06);
}

.avatar-emoji-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: inherit;
}

.fav-indicator-icon {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 14px;
  filter: drop-shadow(0 0 4px rgba(236, 72, 153, 0.8));
}

.card-info {
  display: flex;
  flex-direction: column;
}

.card-name {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

.card-anime {
  font-size: 11px;
  color: var(--hint-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

/* Звёзды (1-5) */
.card-stars {
  display: flex;
  gap: 2px;
  font-size: 12px;
  margin-bottom: 6px;
}

.star {
  color: rgba(255, 255, 255, 0.15);
}

.star.filled {
  color: #fbbf24;
  filter: drop-shadow(0 0 2px rgba(251, 191, 36, 0.8));
}

/* Перки в карточке */
.card-perks-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 10px;
}

.perk-tag {
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 5px;
  border-radius: 4px;
  color: #cbd5e1;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

.perk-tag.highlight {
  color: var(--accent-pink);
  background: rgba(236, 72, 153, 0.12);
}

/* ================= МОДАЛЬНОЕ ОКНО ДЕТАЛЕЙ ================= */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.modal-window {
  width: 100%;
  max-width: 360px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: var(--radius-full);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.modal-avatar-big {
  width: 140px;
  height: 140px;
  margin: 10px auto 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  font-size: 64px;
  background: rgba(15, 23, 42, 0.6);
}

.modal-title-area {
  text-align: center;
  margin-bottom: 14px;
}

.modal-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.modal-anime {
  font-size: 13px;
  color: var(--hint-color);
}

.modal-quote {
  font-size: 12px;
  color: #cbd5e1;
  font-style: italic;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  text-align: center;
}

.modal-perks-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.modal-perk-item {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 10px;
  border-radius: 6px;
}

.modal-perk-label {
  color: var(--hint-color);
}

.modal-perk-val {
  font-weight: 700;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
}

.modal-ability-box {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.modal-ability-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-purple);
  margin-bottom: 2px;
}

.modal-ability-desc {
  font-size: 11px;
  color: #e2e8f0;
}

.btn-set-favorite {
  width: 100%;
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

.btn-set-favorite:active {
  transform: scale(0.96);
  opacity: 0.9;
}

.btn-set-favorite.is-already-fav {
  background: rgba(255, 255, 255, 0.1);
  color: var(--hint-color);
  box-shadow: none;
  cursor: default;
}

/* ==========================================================================
   ГАЧА: БАННЕРЫ, АЛТАРЬ, АНИМАЦИИ ПОРТАЛА И РАСКРЫТИЕ КАРТ
   ========================================================================== */

/* Переключатель баннеров */
.banner-tabs-wrap {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.banner-tab-btn {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-color);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.banner-tab-btn.active {
  background: rgba(124, 58, 237, 0.18);
  border-color: var(--accent-purple);
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.3);
}

.banner-tab-btn[data-banner="event"].active {
  background: rgba(236, 72, 153, 0.18);
  border-color: var(--accent-pink);
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.3);
}

.banner-tab-icon {
  font-size: 22px;
}

.banner-tab-text {
  text-align: left;
}

.banner-tab-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.banner-tab-sub {
  display: block;
  font-size: 11px;
  color: var(--hint-color);
}

.banner-tab-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--accent-red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

/* Статус гачи и счетчики */
.gacha-status-card {
  padding: 14px 16px;
  margin-bottom: 14px;
}

.gacha-status-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.gacha-stat-item {
  display: flex;
  flex-direction: column;
}

.gacha-stat-label {
  font-size: 11px;
  color: var(--hint-color);
  margin-bottom: 2px;
}

.gacha-stat-val {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.coin-val { color: var(--accent-gold); }
.ticket-val { color: #38bdf8; }

.pity-bars-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pity-bar-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pity-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--hint-color);
}

.pity-count {
  font-weight: 700;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
}

.pity-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.pity-fill-ssr {
  height: 100%;
  background: var(--gold-gradient);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
  transition: width 0.4s ease;
}

.pity-fill-ur {
  height: 100%;
  background: linear-gradient(90deg, #ec4899, #8b5cf6, #06b6d4);
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
  transition: width 0.4s ease;
}

/* Алтарь и портал */
.summon-altar-card {
  padding: 18px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
}

.altar-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 18px;
}

.summon-portal-container {
  width: 170px;
  height: 170px;
  margin: 0 auto 20px auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-outer-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px dashed rgba(168, 85, 247, 0.5);
  animation: spinClockwise 22s linear infinite;
}

.portal-mid-ring {
  position: absolute;
  width: 82%;
  height: 82%;
  border-radius: 50%;
  border: 2px solid rgba(236, 72, 153, 0.4);
  border-top-color: transparent;
  border-bottom-color: transparent;
  animation: spinCounterClockwise 12s linear infinite;
}

.portal-inner-core {
  position: absolute;
  width: 58%;
  height: 58%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, rgba(11, 15, 25, 0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: portalPulse 3s ease-in-out infinite alternate;
}

.portal-crystal {
  font-size: 34px;
  filter: drop-shadow(0 0 14px rgba(168, 85, 247, 0.8));
  animation: crystalFloat 2.5s ease-in-out infinite alternate;
}

.portal-ambient-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
  filter: blur(16px);
  pointer-events: none;
}

.portal-runes {
  position: absolute;
  width: 100%;
  font-size: 11px;
  color: rgba(216, 180, 254, 0.6);
  letter-spacing: 4px;
  pointer-events: none;
  animation: spinClockwise 35s linear infinite;
}

@keyframes spinClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinCounterClockwise {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes portalPulse {
  0% { transform: scale(0.96); box-shadow: 0 0 12px rgba(139, 92, 246, 0.2); }
  100% { transform: scale(1.06); box-shadow: 0 0 24px rgba(236, 72, 153, 0.4); }
}

@keyframes crystalFloat {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(-6px) scale(1.08); }
}

/* Кнопки призыва */
.summon-actions-row {
  display: flex;
  gap: 12px;
}

.summon-action-btn {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  flex: 1;
  padding: 12px 10px;
  border-radius: var(--radius-md);
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.summon-action-btn:active {
  transform: scale(0.95);
}

.pull-1-btn {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.pull-1-btn.free-claim {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.45);
}

.pull-10-btn {
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.35);
}

.btn-main-label {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-sub-label {
  font-size: 11px;
  opacity: 0.9;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 2px;
}

.gacha-rates-hint {
  text-align: center;
  font-size: 11px;
  color: var(--hint-color);
  padding: 6px 12px;
}

.nav-item-gacha .gacha-sparkle-icon {
  animation: pulseGlow 2s infinite ease-in-out;
}
@keyframes pulseGlow {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(236, 72, 153, 0.4)); }
  50% { transform: scale(1.15); filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.8)); }
}

/* ==========================================================================
   МОДАЛЬНОЕ ОКНО ПРИЗЫВА (АНИМАЦИЯ + FLIP-КАРТЫ + ОТДАЧА)
   ========================================================================== */

.summon-backdrop {
  background: rgba(5, 7, 13, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.summon-modal-window {
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-y: auto;
}

/* Фаза 1: Портал и лучи */
.summon-anim-stage {
  width: 100%;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.summon-spinning-orb {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #c084fc 40%, #7c3aed 70%, transparent 100%);
  box-shadow: 0 0 40px #8b5cf6, 0 0 80px rgba(236, 72, 153, 0.6);
  animation: orbHyperDrive 1.4s ease-in-out infinite alternate;
  position: relative;
  z-index: 2;
}

.summon-spinning-orb.orb-ur {
  background: radial-gradient(circle, #fff 0%, #f43f5e 35%, #8b5cf6 65%, #06b6d4 100%);
  box-shadow: 0 0 50px #f43f5e, 0 0 90px #8b5cf6;
}

.summon-spinning-orb.orb-ssr {
  background: radial-gradient(circle, #fff 0%, #fbbf24 40%, #f59e0b 75%, transparent 100%);
  box-shadow: 0 0 40px #fbbf24, 0 0 80px rgba(245, 158, 11, 0.6);
}

.summon-beam {
  position: absolute;
  width: 8px;
  height: 380px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.9) 50%, transparent 100%);
  filter: blur(2px);
  animation: beamFlash 0.8s ease-in-out infinite;
  z-index: 1;
}

@keyframes orbHyperDrive {
  0% { transform: scale(0.85) rotate(0deg); }
  100% { transform: scale(1.25) rotate(720deg); }
}

@keyframes beamFlash {
  0%, 100% { opacity: 0.3; width: 4px; }
  50% { opacity: 1; width: 14px; }
}

.summon-phase-title {
  margin-top: 30px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  animation: textBlink 1s ease-in-out infinite alternate;
}

@keyframes textBlink {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* Фаза 2: Раскрытие */
.summon-reveal-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reveal-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.reveal-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.text-action-btn {
  background: none;
  border: none;
  color: var(--accent-pink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
}

.summon-cards-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.summon-cards-grid.single-card {
  grid-template-columns: 1fr;
  max-width: 240px;
}

/* 3D Flip Карточка */
.summon-flip-card {
  height: 180px;
  perspective: 1000px;
  cursor: pointer;
}

.summon-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: var(--radius-md);
}

.summon-flip-card.flipped .summon-flip-inner {
  transform: rotateY(180deg);
}

.summon-card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Рубашка карты */
.summon-card-back {
  background: linear-gradient(145deg, #182238 0%, #0c1220 100%);
  border: 1px solid rgba(139, 92, 246, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.back-seal {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px dashed rgba(245, 158, 11, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.back-hint {
  font-size: 11px;
  color: var(--hint-color);
  font-weight: 600;
}

/* Лицевая сторона карты */
.summon-card-front {
  transform: rotateY(180deg);
  background: var(--card-gradient);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px;
  text-align: center;
  justify-content: space-between;
}

.front-avatar-box {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 4px auto;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.6);
}

.front-hero-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.front-hero-anime {
  font-size: 10px;
  color: var(--hint-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.front-stars {
  font-size: 11px;
  color: var(--accent-gold);
  margin-top: 2px;
}

.front-new-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--accent-green);
  color: #000;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: var(--radius-full);
}

.reveal-actions {
  width: 100%;
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.reveal-actions button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

