/* ═══════════════════════════════════════════════════════════
   ЕФЕКТИ ЗА АРЕНАТА — същите като в дуел зоната, в нашите цветове
   ═══════════════════════════════════════════════════════════ */

.dc-zone {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 6px;
}

.dc-zone .fx-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.dc-zone .fx-bg i { position: absolute; display: block; }

.dc-zone > .dc-arena,
.dc-zone > .dc-daily { position: relative; z-index: 1; }

/* 1. перспективна решетка на пода */
.dc-zone .fx-grid {
  left: -30%; right: -30%; bottom: -10%; height: 52%;
  background-image:
    linear-gradient(rgba(201, 162, 39, .18) 0 1px, transparent 1px 100%),
    linear-gradient(90deg, rgba(150, 178, 128, .12) 0 1px, transparent 1px 100%);
  background-size: 74px 74px, 74px 74px;
  transform: perspective(440px) rotateX(73deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.45) 42%, transparent 86%);
  mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.45) 42%, transparent 86%);
  opacity: .5;
  animation: dcFloor 7s linear infinite;
}
@keyframes dcFloor { to { background-position: 0 74px, 0 0; } }

/* 2. диагонални ивици */
.dc-zone .fx-streaks {
  inset: -25%;
  background: repeating-linear-gradient(102deg,
    transparent 0 72px,
    rgba(201, 162, 39, .04) 72px 74px,
    transparent 74px 186px,
    rgba(150, 178, 128, .035) 186px 188px,
    transparent 188px 308px);
  animation: dcDrift 28s linear infinite;
}
@keyframes dcDrift { to { transform: translateX(-380px); } }

/* 3. сканиращи линии */
.dc-zone .fx-scan {
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .3) 0 1px, transparent 1px 3px);
  opacity: .38;
  mix-blend-mode: soft-light;
}

/* 4. светлинна вълна */
.dc-zone .fx-sweep {
  left: 0; right: 0; height: 240px; top: -260px;
  background: linear-gradient(180deg, transparent, rgba(201, 162, 39, .07) 44%, rgba(150, 178, 128, .045) 66%, transparent);
  animation: dcSweep 10s linear infinite;
  will-change: top;
}
@keyframes dcSweep { 0% { top: -260px; } 100% { top: 108%; } }

/* 5. винетка */
.dc-zone .fx-vig {
  inset: 0;
  background: radial-gradient(120% 92% at 50% 34%, transparent 44%, rgba(4, 8, 6, .62) 100%);
}

/* ── заглавие като в дуела: бавно дишащо злато ── */
.dc-title { animation: dcTitle 7s ease-in-out infinite; }
@keyframes dcTitle {
  0%, 100% { text-shadow: 0 0 18px rgba(201, 162, 39, .22), 0 0 42px rgba(201, 162, 39, .08); }
  50% { text-shadow: 0 0 30px rgba(226, 192, 99, .5), 0 0 74px rgba(201, 162, 39, .22); }
}

/* ── диамантите на напредъка пулсират ── */
.dc-diamonds i.done { animation: dcDiamond 3.4s ease-in-out infinite; }
.dc-diamonds i.done:nth-child(2n) { animation-delay: .5s; }
.dc-diamonds i.done:nth-child(3n) { animation-delay: 1.1s; }
@keyframes dcDiamond {
  0%, 100% { box-shadow: 0 0 6px -1px rgba(201, 162, 39, .5); }
  50% { box-shadow: 0 0 16px 1px rgba(226, 192, 99, .85); }
}

/* ── светлинна ивица по картите при посочване ── */
.dc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(226, 192, 99, .16) 50%, transparent 62%);
  background-size: 240% 100%;
  transition: opacity .2s ease;
}
.dc-card:hover:not([disabled])::after { opacity: 1; animation: dcShine 1.1s ease-out; }
@keyframes dcShine { from { background-position: 120% 0; } to { background-position: -40% 0; } }

/* ── текущият кръг диша ── */
.dc-card.current { animation: dcBreath 4.2s ease-in-out infinite; }
@keyframes dcBreath {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(226, 192, 99, .3), 0 0 24px -18px rgba(201, 162, 39, .9); }
  50% { box-shadow: inset 0 0 0 1px rgba(226, 192, 99, .55), 0 0 34px -10px rgba(201, 162, 39, .95); }
}

/* ── главният бутон: лека светкавица на всеки 6 сек ── */
.dc-play { position: relative; overflow: hidden; }
.dc-play::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; width: 60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: translateX(-140%);
  animation: dcPlaySweep 6s ease-in-out infinite;
}
@keyframes dcPlaySweep { 0%, 62% { transform: translateX(-140%); } 88%, 100% { transform: translateX(240%); } }

/* ── деко рамката на залата също светва ── */
.dc-arena {
  box-shadow: 0 40px 80px -60px #000, inset 0 0 60px -50px rgba(201, 162, 39, .8);
}

@media (prefers-reduced-motion: reduce) {
  .dc-zone .fx-grid, .dc-zone .fx-streaks, .dc-zone .fx-sweep,
  .dc-title, .dc-play::after, .dc-card.current, .dc-diamonds i.done { animation: none; }
  .dc-card:hover:not([disabled])::after { animation: none; opacity: .5; }
  .dc-zone .fx-grid { opacity: .32; }
  /* остатъчните преходи по ефектите също падат */
  .dc-card::after, .dc-play, .dc-card { transition: none; }
}
