/* ═════════════════ KART DÜELLOSU ═════════════════ */
.cta.alt { background: var(--paper3); box-shadow: 5px 5px 0 var(--blue), 5px 5px 0 2.5px var(--ink); }
.cta.alt:hover { box-shadow: 7px 7px 0 var(--blue), 7px 7px 0 2.5px var(--ink); }
.cta:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.hero-acts { flex-wrap: wrap; }
.hero-acts .muted { flex-basis: 100%; max-width: 40em; }
.a { --side: var(--blue); }
.b { --side: var(--pink); }
b.a, b.b, span.a, span.b, h3.a, h3.b { color: var(--side); }
.center { text-align: center; }

.kd { display: grid; gap: 14px; padding-bottom: 40px; }
.kd .title { margin: 0; }
.kd-lead { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 18px; margin: 0; }
.kd-order { display: inline-flex; gap: 4px; }
.kd-o { width: 22px; height: 22px; display: grid; place-items: center; font: 700 11px var(--mono); font-style: normal; border: 2px solid var(--side); color: var(--side); border-radius: 50%; background: var(--paper3); }
.kd-o.past { background: var(--side); color: var(--paper3); opacity: .5; }
.kd-o.now { background: var(--side); color: var(--paper3); border-color: var(--ink); transform: scale(1.25); }

/* Deste kurma */
.kd-drow { border: 3px dashed var(--ink); border-radius: 8px; padding: 10px 14px; background: var(--paper3); transition: box-shadow .2s; }
.kd-drow.turn { border-style: solid; box-shadow: 6px 6px 0 var(--side); }
.kd-drow h3 { margin: 0 0 8px; font-family: var(--disp); font-stretch: 110%; text-transform: uppercase; color: var(--side); display: flex; gap: 10px; align-items: baseline; }
.kd-drow h3 small, .kd-drow h3 span { font: 700 12px var(--mono); color: var(--ink2); }
.kd-mini { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.kd-mini .card.sm { width: 112px; }
.kd-mini .kd-slot { width: 112px; aspect-ratio: 5 / 7; border: 2px dashed #b3aa96; border-radius: 8px; flex: none; }
.kd-pool { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.kd-pick, .kd-hc { all: unset; display: grid; gap: 6px; align-content: start; cursor: pointer; position: relative; transition: transform .14s var(--ease-snap); }
.kd-pick:hover:not([disabled]), .kd-hc:hover:not([disabled]) { transform: translateY(-6px) rotate(-1deg); }
.kd-pick:focus-visible, .kd-hc:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; border-radius: 10px; }
.kd-pick[disabled], .kd-hc[disabled] { cursor: default; }
.kd-pick .card, .kd-hc .card { width: 100%; }
.kd-tags { display: flex; flex-wrap: wrap; gap: 3px; }
.kd-tags i { font: 700 9.5px var(--mono); font-style: normal; text-transform: uppercase; padding: 1px 5px; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--paper3); }
.kd-tags i.bad { border-color: #b3aa96; color: var(--dim); }

/* Skor şeridi */
.kd-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; border-bottom: 3px solid var(--ink); padding-bottom: 10px; }
.kd-score { display: flex; align-items: center; gap: 12px; font-family: var(--disp); text-transform: uppercase; font-stretch: 110%; font-size: 20px; color: var(--side); min-width: 0; }
.kd-score b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kd-score.b { justify-content: flex-end; }
.kd-score .n { font-size: 46px; font-weight: 900; line-height: .9; color: var(--ink); text-shadow: 3px 3px 0 var(--side); }
.kd-score .n.bump { animation: bump .5s var(--ease-snap); }
@keyframes bump { 40% { transform: scale(1.6) rotate(-6deg); } }
.kd-round { font: 700 13px var(--mono); text-align: center; display: grid; gap: 6px; }
.kd-round b { font-size: 18px; }
.kd-pips { display: flex; gap: 5px; justify-content: center; }
.kd-pips i { width: 14px; height: 14px; border: 2px solid var(--ink); border-radius: 50%; }
.kd-pips i.a { background: var(--blue); }
.kd-pips i.b { background: var(--pink); }
.kd-pips i.tie { background: #b3aa96; }
.kd-pips i.now { background: var(--yellow); animation: blink 1s steps(2) infinite; }

/* Arena */
.kd-arena { display: grid; grid-template-columns: 1fr minmax(0, 260px); gap: 14px; }
.kd-acard, .kd-next { border: 3px solid var(--ink); border-radius: 8px; padding: 8px 14px; display: grid; gap: 2px; }
.kd-acard { background: var(--yellow); box-shadow: 6px 6px 0 var(--ink); transform: rotate(-.6deg); animation: rise .4s var(--ease-out); }
.kd-acard small, .kd-next small { font: 700 11px var(--mono); letter-spacing: .1em; }
.kd-acard b { font-family: var(--disp); font-weight: 900; font-stretch: 125%; font-size: clamp(26px, 4vw, 44px); line-height: .95; text-transform: uppercase; }
.kd-acard span { font-weight: 700; font-size: 16px; }
.kd-next { background: var(--paper3); border-style: dashed; opacity: .85; }
.kd-next b { font-family: var(--disp); font-stretch: 112%; text-transform: uppercase; font-size: 18px; }
.kd-next span { font-size: 13px; color: var(--ink2); }

/* Sahne: iki kart, ortada VS / POW */
.kd-stage { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: start; padding: 12px 18px; border: 3px solid var(--ink); border-radius: 10px; position: relative; overflow: hidden;
  background: radial-gradient(circle, rgba(23, 20, 15, .13) 1.2px, transparent 1.6px) 0 0 / 9px 9px, var(--paper2); transition: background-color .3s; }
.kd-stage.hit { animation: shake .45s; }
.kd-stage.win-a { background-color: #dfe7f6; }
.kd-stage.win-b { background-color: #f9dde8; }
.kd-slot { display: grid; gap: 10px; justify-items: center; min-width: 0; }
.kd-who { font-family: var(--disp); font-stretch: 110%; font-size: 18px; text-transform: uppercase; color: var(--side); display: flex; gap: 8px; align-items: center; }
.kd-x2 { font: 700 12px var(--mono); font-style: normal; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); border-radius: 4px; padding: 0 5px; }
.kd-x2.used { background: transparent; color: #b3aa96; border-color: #b3aa96; text-decoration: line-through; }
.kd-card { width: min(170px, 100%); aspect-ratio: 5 / 7; position: relative; display: grid; }
.kd-card > * { grid-area: 1 / 1; }
.kd-card .card { width: 100%; }
.kd-card .card-back { width: 100%; height: 100%; animation: slotin .35s var(--ease-snap); }
.kd-empty { border: 3px dashed #b3aa96; border-radius: 10px; display: grid; place-items: center; font: 700 12px var(--mono); color: var(--dim); text-transform: uppercase; text-align: center; padding: 8px; }
.kd-flip { animation: flip .55s var(--ease-out); transform-style: preserve-3d; }
.kd-dstamp { position: absolute; top: -10px; right: -10px; z-index: 3; font: 900 26px var(--disp); font-style: normal; background: var(--yellow); border: 3px solid var(--ink); border-radius: 50%; width: 56px; height: 56px; display: grid; place-items: center; transform: rotate(12deg); box-shadow: 3px 3px 0 var(--ink); animation: kostamp .4s var(--ease-snap); }
.kd-winner { animation: winpop .6s var(--ease-snap); box-shadow: 0 0 0 5px var(--yellow), 8px 8px 0 5px var(--ink); border-radius: 10px; }
@keyframes winpop { 40% { transform: scale(1.08) rotate(-2deg); } }
.kd-break { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; max-width: 260px; min-height: 30px; }
.kd-chip { font: 700 13px var(--mono); border: 2px solid var(--ink); border-radius: 4px; padding: 2px 6px; background: var(--paper3); animation: chip .3s var(--ease-snap); }
.kd-chip small { font-size: 10px; letter-spacing: .04em; }
.kd-chip.pos { background: #c8f0c4; }
.kd-chip.neg { background: #ffd0d0; }
.kd-chip.luck { background: var(--yellow); }
.kd-chip.base { background: var(--ink); color: var(--paper3); }
@keyframes chip { from { transform: scale(.4) rotate(-10deg); opacity: 0; } }
.kd-total { flex-basis: 100%; text-align: center; font-family: var(--disp); font-weight: 900; font-size: 46px; line-height: 1; color: var(--ink); text-shadow: 3px 3px 0 var(--side); animation: chip .35s var(--ease-snap); }
.kd-mid { align-self: center; display: grid; place-items: center; min-width: 90px; }
.kd-vs { font-family: var(--disp); font-weight: 900; font-stretch: 125%; font-size: 44px; color: var(--ink); text-shadow: 3px 3px 0 var(--pink), -3px -3px 0 var(--blue); transform: rotate(-8deg); }
.kd-pow { position: relative; z-index: 4; font-family: var(--disp); font-weight: 900; font-stretch: 125%; font-size: clamp(40px, 6.5vw, 82px); line-height: 1; color: var(--yellow);
  -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--side, var(--ink)); padding: 14px 18px; animation: pow .55s var(--ease-snap) both; white-space: nowrap; }
.kd-pow::before { content: ""; position: absolute; inset: -18px -26px; z-index: -1; background: var(--paper3); border: 3px solid var(--ink);
  clip-path: polygon(50% 0, 61% 18%, 82% 6%, 78% 30%, 100% 34%, 84% 50%, 100% 66%, 78% 70%, 82% 94%, 61% 82%, 50% 100%, 39% 82%, 18% 94%, 22% 70%, 0 66%, 16% 50%, 0 34%, 22% 30%, 18% 6%, 39% 18%); }
.kd-pow.a { --side: var(--blue); }
.kd-pow.b { --side: var(--pink); }
.kd-pow.tie { font-size: 30px; --side: #b3aa96; }
@keyframes pow { 0% { transform: scale(0) rotate(-30deg); } 60% { transform: scale(1.25) rotate(6deg); } 100% { transform: scale(1) rotate(-7deg); } }

/* El */
.kd-handwrap { display: grid; gap: 12px; }
.kd-hand-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.kd-hand-head h3 { margin: 0; font-family: var(--disp); font-stretch: 112%; text-transform: uppercase; font-size: 22px; }
.kd-hand { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; padding-top: 14px; }
.kd-hc kbd { position: absolute; top: -8px; left: -8px; z-index: 3; }
.kd-hc.sel { transform: translateY(-14px) rotate(-1.5deg); }
.kd-hc.sel .card { box-shadow: 0 0 0 4px var(--yellow), 8px 8px 0 4px var(--ink); border-radius: 10px; }
.kd-hint { font: 700 11px var(--mono); padding: 3px 6px; border: 2px solid var(--ink); border-radius: 4px; background: var(--paper3); text-align: center; }
.kd-hint.up { background: #c8f0c4; }
.kd-hint.down { background: #ffd0d0; }
.kd-act { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px; padding-top: 6px; }
.kd-dbl { display: flex; align-items: center; gap: 8px; border: 3px solid var(--ink); border-radius: 8px; padding: 8px 12px; background: var(--yellow); cursor: pointer; box-shadow: var(--press); }
.kd-dbl b { font-family: var(--disp); font-stretch: 112%; }
.kd-dbl span { font-size: 13px; }
.kd-dbl input { width: 20px; height: 20px; accent-color: var(--ink); }
.kd-dbl.off { background: transparent; opacity: .5; box-shadow: none; cursor: default; }
.kd-cover, .kd-after, .kd-wait { border: 3px solid var(--ink); border-radius: 10px; background: var(--paper3); padding: 22px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.kd-cover h3 { font-family: var(--disp); font-stretch: 112%; font-size: 30px; text-transform: uppercase; margin: 0; }
.kd-cover p { margin: 0; }
.kd-after p { font-size: 18px; margin: 0; }
.kd-wait { display: flex; justify-content: center; align-items: center; gap: 12px; font: 700 14px var(--mono); }

/* Sonuç */
.kd-end { text-align: center; justify-items: center; }
.kd-final { display: flex; gap: 20px; align-items: center; font-family: var(--disp); font-weight: 900; font-size: 110px; line-height: 1; }
.kd-final b.a { color: var(--blue); text-shadow: 5px 5px 0 var(--ink); }
.kd-final b.b { color: var(--pink); text-shadow: 5px 5px 0 var(--ink); }
.kd-recap { list-style: none; padding: 0; margin: 0; width: min(760px, 100%); display: grid; gap: 6px; text-align: left; }
.kd-recap li { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 10px; align-items: center; border: 2px solid var(--ink); border-radius: 6px; padding: 7px 12px; background: var(--paper3); font-size: 14px; }
.kd-recap li.a { box-shadow: -6px 0 0 var(--blue); }
.kd-recap li.b { box-shadow: 6px 0 0 var(--pink); }
.kd-recap .ar { font: 700 11px var(--mono); }
.kd-recap .c.b { text-align: right; }

@media (max-width: 760px) {
  .kd-arena { grid-template-columns: 1fr; }
  .kd-next { display: none; }
  .kd-stage { padding: 10px; gap: 6px; }
  .kd-mid { min-width: 40px; }
  .kd-vs { font-size: 28px; }
  .kd-hand { grid-template-columns: repeat(5, 120px); overflow-x: auto; padding: 16px 4px 8px; }
  .kd-score .n { font-size: 38px; }
  .kd-score { font-size: 14px; }
  .kd-pool { grid-template-columns: repeat(2, 1fr); }
  .kd-break { max-width: 150px; }
  .kd-chip { font-size: 11px; }
  .kd-total { font-size: 34px; }
  .kd-final { font-size: 72px; }
  .kd-recap li { grid-template-columns: 1fr 1fr; }
  .kd-recap .ar { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .kd *, .kd-stage.hit { animation: none !important; transition: none !important; }
}
.kd-hc kbd { background: var(--paper3); opacity: 1; margin: 0; }
.kd-card .card-back.front { height: 100%; }

/* ═════════════════ HAKEM KAPIŞMASI: ÇİZGİ ROMAN PANELİ ═════════════════ */
.duel:not(:empty) { grid-template-columns: 1fr auto 1fr; border: 3px solid var(--ink); border-radius: 4px; padding: 34px 16px 18px; overflow: hidden; isolation: isolate;
  background: radial-gradient(circle, rgba(23, 20, 15, .14) 1.2px, transparent 1.7px) 0 0 / 8px 8px, var(--paper3); box-shadow: 6px 6px 0 var(--fxc, var(--ink)), 6px 6px 0 3px var(--ink); }
/* Hız çizgileri: panelin ortasından dışarı */
.duel:not(:empty)::before { content: ""; position: absolute; inset: -40%; z-index: -1; opacity: 0;
  background: repeating-conic-gradient(from 0deg at 50% 50%, var(--fxc, var(--ink)) 0deg 1.4deg, transparent 1.4deg 9deg);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 16%, #000 46%); mask: radial-gradient(circle at 50% 50%, transparent 16%, #000 46%); }
.duel.go::before { animation: speedlines 1.6s ease-out .3s both; }
@keyframes speedlines { 0% { opacity: 0; transform: scale(.7) rotate(0); } 25% { opacity: .5; } 100% { opacity: .16; transform: scale(1) rotate(4deg); } }
.duel.fx-blast { --fxc: #ff7a2f; } .duel.fx-clash { --fxc: var(--ink); } .duel.fx-speed { --fxc: var(--blue); } .duel.fx-stealth { --fxc: #5b4bd1; }
.duel.fx-hax { --fxc: var(--pink); } .duel.fx-mind { --fxc: #16b39a; } .duel.fx-heal { --fxc: #3fb950; } .duel.fx-finisher { --fxc: #e6b800; }
.panel-cap { position: absolute; top: -3px; left: -3px; z-index: 2; background: var(--yellow); border: 3px solid var(--ink); padding: 3px 10px; font: 700 11px var(--mono); letter-spacing: .06em; }
.duel-mid { width: 24px; min-width: 0; position: relative; z-index: 3; align-self: stretch; }
.duel-side .card:only-child, .duel-side .ghost:only-child { width: min(160px, 82%); }
.bpow { position: absolute; left: 50%; top: 50%; translate: -50% -50%; font-size: clamp(28px, 4.4vw, 54px); padding: 10px 12px; animation-delay: .36s; --side: var(--fxc, var(--ink)); transform: rotate(-7deg); }
.bpow::before { inset: -14px -18px; }
.bpow.fx-stealth { color: var(--paper3); }
.duel.go .duel-mid { animation: none; }
.duel.fx-finisher.go { animation: shake .5s .4s; }
/* Sahne metni: anlatıcı kutusu */
.scene { border-width: 3px; border-radius: 4px; }
.scene .shead .sn { background: var(--ink); color: var(--paper3); padding: 1px 6px; }
@media (max-width: 760px) {
  .duel:not(:empty) { padding: 30px 8px 12px; }
  .duel-mid { width: 12px; }
  .bpow { font-size: 26px; padding: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .duel.go::before, .duel.fx-finisher.go { animation: none !important; opacity: .12; }
}
/* Kenardaki küçük kartlarda K.O. damgası kartı yutmasın */
.card.xs .ko-stamp { font-size: 17cqw; place-items: center end; padding-right: 8%; }

/* Sahne: yazı (POW) ortada yüzer, kart sütunlarını sıkıştırmaz */
.kd-stage { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.kd-mid { position: relative; align-self: stretch; }
.kd-pow { position: absolute; left: 50%; top: 42%; translate: -50% -50%; }

/* Telefonda üst bar tek satır */
@media (max-width: 560px) {
  .top-right { flex-wrap: nowrap; gap: 5px; }
  .logo .l2 { display: none; }
  .icon-btn { font-size: 9.5px; padding: 4px 7px; letter-spacing: .02em; white-space: nowrap; }
  .kd-mid { min-width: 16px; }
  .kd-pow { font-size: 34px; }
}
.kd-clock { font: 700 13px var(--mono); margin-left: 10px; padding: 2px 8px; border: 2px solid currentColor; border-radius: 999px; vertical-align: middle; }
.kd-clock.warn { color: var(--pink); animation: blink 1s steps(2) infinite; }
