/* /kart/ — NFC kartvizit karşılama sayfası (page-kart.php, js/kart.js)
   Sıra: devre yolları aslana doğru çizilir → lehim noktaları yanar → aslan belirir → yazı ve düğmeler sırayla gelir. */

.kart {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(var(--hdr) + 12px) var(--gutter) 64px;
  background: radial-gradient(120% 70% at 50% 30%, #17130b 0%, var(--ink) 62%);
  text-align: center;
}

/* Sahne: devre + aslan */
.kart-sahne { position: relative; width: min(92vw, 420px, 44svh); aspect-ratio: 400 / 460; flex: none; }
.kart-devre {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
}
.kart-yollar path {
  stroke: var(--gold); stroke-width: 1.6;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: kart-ciz 1.1s var(--ease-io) forwards;
  filter: drop-shadow(0 0 3px rgba(241, 217, 138, .55));
}
.kart-yollar path:nth-child(3n)   { animation-delay: .12s; }
.kart-yollar path:nth-child(3n+1) { animation-delay: .28s; }
.kart-yollar path:nth-child(4n)   { animation-delay: .4s; }
.kart-lehim circle {
  fill: var(--gold-hi); opacity: 0; transform-box: fill-box; transform-origin: center;
  animation: kart-lehim .5s var(--ease) 1.25s forwards;
}
.kart-isik {
  position: absolute; left: 50%; top: 50%; width: 62%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, rgba(241, 217, 138, .34), rgba(201, 162, 74, .1) 55%, transparent 100%);
  animation: kart-isik 2.6s ease-out 1.3s forwards;
}
.kart-aslan {
  position: absolute; left: 50%; top: 50%; width: 46%; height: auto; translate: -50% -50%;
  opacity: 0; scale: .86;
  animation: kart-aslan 1s var(--ease) 1.35s forwards;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .6));
}

/* Yazı ve düğmeler */
.kart-icerik { width: min(100%, 420px); margin-top: 4px; }
.kart-icerik > *, .kart-dugmeler > * { opacity: 0; animation: kart-gel .7s var(--ease) forwards; }
.kart-no { animation-delay: 2s; margin: 0 0 10px; font: 600 .74rem/1 var(--body); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.kart-no b { font-weight: 700; color: var(--gold-hi); }
.kart-baslik { animation-delay: 2.05s; margin: 0; font: 500 clamp(1.9rem, 8.4vw, 2.6rem)/1.08 var(--display); color: var(--ivory); }
.kart-baslik em { font-style: italic; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kart-alt { animation-delay: 2.2s; margin: 12px 0 0; font-size: .86rem; line-height: 1.5; color: var(--mute); }

.kart-dugmeler { animation-delay: 2.3s; opacity: 1; animation: none; display: grid; gap: 10px; margin-top: 26px; }
.kart-dugmeler .btn { width: 100%; justify-content: center; }
.kart-dugmeler > :nth-child(1) { animation-delay: 2.35s; }
.kart-dugmeler > :nth-child(2) { animation-delay: 2.47s; }
.kart-dugmeler > :nth-child(3) { animation-delay: 2.59s; }
.kart-dugmeler > :nth-child(4) { animation-delay: 2.71s; }
.kart-dugmeler > :nth-child(5) { animation-delay: 2.83s; }

@keyframes kart-ciz   { to { stroke-dashoffset: 0; } }
@keyframes kart-lehim { 0% { opacity: 0; transform: scale(.2); } 60% { opacity: 1; transform: scale(1.6); } 100% { opacity: 1; transform: scale(1); } }
@keyframes kart-isik  { 0% { opacity: 0; scale: .6; } 30% { opacity: 1; scale: 1.15; } 100% { opacity: .55; scale: 1; } }
@keyframes kart-aslan { to { opacity: 1; scale: 1; } }
@keyframes kart-gel   { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Hareket azaltma tercihi: her şey yerinde, animasyonsuz */
@media (prefers-reduced-motion: reduce) {
  .kart-yollar path, .kart-lehim circle, .kart-isik, .kart-aslan, .kart-icerik > *, .kart-dugmeler > * { animation: none; opacity: 1; scale: 1; stroke-dashoffset: 0; }
  .kart-isik { opacity: .55; }
}
