/* =========================================================================
   EL ARALIKLARI — VURUŞ KATMANI (punch)
   Dünya: gece yarısı turnuva masası. Koyu çuha, pirinç korkuluk, fildişi kart,
   gerçek jeton. En sonda yüklenir.
   ========================================================================= */

:root {
  --pk-brass: #E7C25A;
  --pk-brass-hi: #FFF2C2;
  --pk-brass-dp: #7A5204;
  --pk-felt: #0C3A2A;
  --pk-felt-dp: #05251A;
  --pk-red: #C8102E;
  --pk-out: #07140E;
}

/* ============================================================ ZEMİN */
body {
  background-color: var(--pk-felt-dp);
  background-image:
    radial-gradient(90% 60% at 50% -8%, rgba(231,194,90,.16), transparent 62%),
    radial-gradient(70% 50% at 8% 104%, rgba(200,16,46,.12), transparent 70%),
    linear-gradient(180deg, #0E4230 0%, #0A3023 48%, #052017 100%);
  background-attachment: fixed;
}

/* ============================================================ TİPOGRAFİ */
.hero h1 {
  font-size: clamp(2.9rem, 8vw, 5rem);
  line-height: .96;
  color: #FFFDF4;
  text-shadow:
    -2px 0 var(--pk-out), 2px 0 var(--pk-out), 0 -2px var(--pk-out), 0 2px var(--pk-out),
    -2px -2px var(--pk-out), 2px -2px var(--pk-out), -2px 2px var(--pk-out), 2px 2px var(--pk-out),
    0 6px 0 rgba(4,16,10,.65),
    0 0 46px rgba(231,194,90,.45);
}
.hero h1 .accent {
  color: var(--pk-brass) !important;
  -webkit-text-fill-color: var(--pk-brass) !important;
  background: none !important;
  text-shadow:
    -2px 0 #2E1F02, 2px 0 #2E1F02, 0 -2px #2E1F02, 0 2px #2E1F02,
    -2px -2px #2E1F02, 2px -2px #2E1F02, -2px 2px #2E1F02, 2px 2px #2E1F02,
    0 6px 0 rgba(30,20,2,.7),
    0 0 40px rgba(231,194,90,.9);
}
h2 { letter-spacing: -.01em; }
.sec-head h2, section > .container > h2 {
  font-size: clamp(2.1rem, 4.8vw, 3.5rem);
  line-height: 1.02;
}

/* göz kaşı: pirinç künye */
.eyebrow {
  display: inline-block;
  color: #2A1C02 !important;
  background: linear-gradient(180deg, var(--pk-brass-hi), var(--pk-brass) 48%, #B4830F);
  border: 1px solid var(--pk-brass-dp);
  border-radius: 3px;
  padding: 5px 13px;
  letter-spacing: .22em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 0 20px -6px rgba(231,194,90,.9);
}
.eyebrow::before, .eyebrow::after { content: none !important; }

/* ============================================================ DÜĞMELER */
.btn-primary {
  position: relative;
  overflow: hidden;
  padding: 15px 28px;
  color: #26190A !important;
  background: linear-gradient(180deg, #FFF3CA 0%, var(--pk-brass) 40%, #C99A18 72%, #8A6407 100%) !important;
  border: 1px solid var(--pk-brass-dp) !important;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.8),
    inset 0 -4px 7px rgba(80,54,0,.45),
    0 0 28px -6px rgba(231,194,90,.85),
    0 16px 30px -18px #000 !important;
}
.btn-primary::after {
  content: "";
  position: absolute; top: -60%; left: -40%;
  width: 34%; height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
  transform: rotate(18deg);
  animation: pkShine 3.8s ease-in-out infinite;
}
@keyframes pkShine { 0%, 64% { left: -40%; } 94%, 100% { left: 125%; } }
@media (prefers-reduced-motion: reduce) { .btn-primary::after { animation: none; opacity: 0; } }
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-2px); }
.btn-ghost {
  border: 2px solid rgba(231,194,90,.55) !important;
  color: #FFF4D6 !important;
  background: rgba(231,194,90,.1) !important;
}
.btn-ghost:hover { border-color: var(--pk-brass) !important; background: rgba(231,194,90,.2) !important; }

/* ============================================ HERO: MASADAKİ PARÇALAR */
.hero { position: relative; overflow: hidden; }
.hero-props {
  position: absolute;
  right: 6px; bottom: -14%;
  width: clamp(250px, 27vw, 400px);
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 26px 40px rgba(0,0,0,.65));
}
.hero-props img { position: absolute; display: block; width: 100%; height: auto; }
.hero-props .pk-card { width: 46%; transform-origin: 50% 100%; }
.hero-props .c1 { left: 2%;  bottom: 12%; transform: rotate(-20deg); }
.hero-props .c2 { left: 24%; bottom: 20%; transform: rotate(-5deg); }
.hero-props .c3 { left: 46%; bottom: 12%; transform: rotate(11deg); }
.hero-props .pk-chip { width: 19%; }
.hero-props .j1 { left: 1%;  bottom: 2%; }
.hero-props .j2 { left: 15%; bottom: 0%; }
.hero-props .j3 { left: 29%; bottom: 3%; }
.hero-props::after { content: ""; display: block; padding-top: 86%; }
@media (max-width: 1100px) { .hero-props { opacity: .3; right: -14%; } }
@media (max-width: 720px)  { .hero-props { display: none; } }
.hero-inner, .hero .container { position: relative; z-index: 1; }

/* el gösterimi: fildişi künye */
.hero-notation .hand {
  background: linear-gradient(180deg, #FFFDF4, #E8DFC8) !important;
  color: #1A2A20 !important;
  border: 1px solid #A8A086 !important;
  border-radius: 4px;
  font-weight: 800;
  box-shadow: 0 8px 18px -10px #000, inset 0 1px 0 #fff;
}

/* ============================================ BÖLÜM SÜSÜ: MAS FİLİGRANI */
main > section:not(.hero) { position: relative; isolation: isolate; }
main > section:not(.hero)::before {
  content: "";
  position: absolute;
  right: -40px; top: 18px;
  width: clamp(150px, 20vw, 280px);
  aspect-ratio: 220/310;
  background: url("../images/cizim/kart-as-maca.svg") center/contain no-repeat;
  opacity: .05;
  transform: rotate(9deg);
  pointer-events: none;
  z-index: 0;
}
.matris-band::before, .nopay::before { opacity: .07; transform: rotate(-7deg); }
@media (max-width: 860px) { main > section:not(.hero)::before { display: none; } }

/* pirinç korkuluk: bölüm sınırları */
main > section:not(.hero)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 5px;
  background: linear-gradient(180deg, var(--pk-brass-hi) 0%, var(--pk-brass) 38%, var(--pk-brass-dp) 100%);
  box-shadow: 0 2px 8px -2px rgba(231,194,90,.6);
  z-index: 2;
  pointer-events: none;
}

/* ============================================================ KARTLAR */
.card, .note, .mistake, .step {
  box-shadow: 0 26px 50px -34px #000, inset 0 1px 0 rgba(255,255,255,.1);
}
.card:hover, .mistake:hover {
  border-color: var(--pk-brass) !important;
  box-shadow: 0 0 0 1px rgba(231,194,90,.4), 0 30px 54px -30px rgba(231,194,90,.3);
}

/* ============================================================ ŞERİTLER */
.site-header, .site-header.is-scrolled {
  border-bottom: 2px solid rgba(231,194,90,.35);
  box-shadow: 0 10px 34px -22px #000, 0 0 30px -14px rgba(231,194,90,.35);
}
.nav-cta, .btn.drawer-cta {
  background: linear-gradient(180deg, #FFF3CA, var(--pk-brass) 44%, #B4830F) !important;
  color: #26190A !important;
  border: 1px solid var(--pk-brass-dp) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 0 20px -6px rgba(231,194,90,.9) !important;
}
.hero-meta span, .trust-strip span, .trust-badge {
  border: 1px solid rgba(231,194,90,.42);
  background: rgba(7,30,22,.7);
  color: #F2E6C4;
  border-radius: 999px;
  padding: 6px 14px;
}

/* =================================================== KAPALI KART BÖLÜMLERİ
   Ritmi kırmak için iki bölüm masaya KAPALI konur: lacivert kart sırtı,
   pirinç çerçeve, açık mürekkep. Boya bağlam token'larıyla çevrilir, böylece
   bütün çocuk ögeler kendiliğinden okunur hale gelir. */
#aralik-nedir > .container,
#tipik-hatalar > .container {
  --ink: #F6F1E2;
  --ink-soft: #D8CFB8;
  --ink-faint: #B3AA92;
  --surface: rgba(246,241,226,.08);
  --surface-2: rgba(246,241,226,.13);
  --surface-3: rgba(246,241,226,.2);
  --line: rgba(246,241,226,.22);
  --line-strong: rgba(246,241,226,.36);
  --accent: #E7C25A;
  --accent-text: #F2D582;
  --accent-soft: #E0B96A;
  --accent2-text: #A8CEE6;
  --gold: #E7C25A;
  color: var(--ink);
  background-color: #11306A !important;
  background-image:
    radial-gradient(90% 60% at 24% -10%, rgba(127,160,232,.16), transparent 62%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='26'><g stroke='%237FA0E8' stroke-opacity='0.3' stroke-width='1.3' fill='none'><path d='M0 13h26M13 0v26'/></g><circle cx='13' cy='13' r='2.6' fill='%23B9CDFA' fill-opacity='0.22'/></svg>"),
    linear-gradient(180deg, #1C3C85 0%, #122B63 48%, #09193D 100%) !important;
  background-size: auto, 26px 26px, auto !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.1),
    inset 0 0 0 7px #0A1C45,
    inset 0 0 0 9px rgba(231,194,90,.75),
    0 44px 74px -44px rgba(0,0,0,.98) !important;
}
#aralik-nedir > .container::before,
#tipik-hatalar > .container::before { color: rgba(246,241,226,.5) !important; }
#aralik-nedir h2, #tipik-hatalar h2,
#aralik-nedir h3, #tipik-hatalar h3 {
  color: #FFFDF4;
  text-shadow: 0 2px 0 rgba(6,14,36,.6), 0 0 34px rgba(231,194,90,.35);
}
#aralik-nedir strong, #tipik-hatalar strong { color: #FFF0C2; }
#aralik-nedir a:not(.btn), #tipik-hatalar a:not(.btn) { color: #F2D582; }

/* Kapalı kart bölümünün içinde zemini AÇIK kalan ögeler (hata kartları gibi)
   token'ları geri çevirir; yoksa açık yazı beyaz kart üstünde kayboluyordu. */
#aralik-nedir .mistake,
#tipik-hatalar .mistake,
#aralik-nedir .note,
#tipik-hatalar .note {
  --ink: #171513;
  --ink-soft: #4A433B;
  --ink-faint: #6B6257;
  --line: rgba(23,21,19,.14);
  --line-strong: rgba(23,21,19,.3);
  --accent: #7E2230;
  --accent-text: #6F1C29;
  --accent-soft: #A8545F;
  --accent2-text: #273D4B;
  --gold: #9A7B2E;
  color: var(--ink);
}
#aralik-nedir .mistake h3, #tipik-hatalar .mistake h3,
#aralik-nedir .note h3, #tipik-hatalar .note h3 {
  color: #171513;
  text-shadow: none;
}
#aralik-nedir .mistake strong, #tipik-hatalar .mistake strong { color: #6F1C29; }
#aralik-nedir .mistake .mk, #tipik-hatalar .mistake .mk { color: #6F1C29; }
#aralik-nedir .mistake .fix, #tipik-hatalar .mistake .fix { color: #1C5A3F; }
#aralik-nedir .mistake a:not(.btn), #tipik-hatalar .mistake a:not(.btn) { color: #6F1C29; }

/* 404: içerik kemik kartın üstünde, hayalet düğme açık yazıyla kayboluyordu */
body.is-404 .btn-ghost,
main > section:only-child .btn-ghost {
  color: #171513 !important;
  background: rgba(23,21,19,.06) !important;
  border: 2px solid rgba(126,34,48,.45) !important;
}
main > section:only-child .btn-ghost:hover {
  background: rgba(126,34,48,.14) !important;
  border-color: #7E2230 !important;
}


/* ====================================================== KANAL IKONLARI
   Plaka artik SVG'nin kendisinde (assets/images/ikon/*.svg):
   eski kucuk cerceveyi tamamen kaldir, cizimi buyut. */
.channel > .ic {
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  display: block !important;
  margin-bottom: 14px !important;
  transform: none !important;
  /* styles.css'teki place-items:center yeni Chrome'da blok cocugu da ortaliyor */
  place-items: normal !important;
  place-content: normal !important;
}
.channel > .ic img {
  display: block;
  width: clamp(58px, 5.8vw, 72px);
  height: auto;
  max-height: none;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  object-fit: contain;
  transition: transform .26s cubic-bezier(.2,.7,.3,1), filter .26s;
}
.channel:hover > .ic img {
  transform: scale(1.09) rotate(-5deg);
  filter: saturate(1.12) brightness(1.06);
}
@media (prefers-reduced-motion: reduce) {
  .channel:hover > .ic img { transform: none; }
}

/* ============================================ HERO: DEKOR AKIŞTAN ÇIKSIN
   redesign.css'teki `.hero > * { position: relative }` kuralı
   .hero-grid-bg'in absolute'unu da eziyordu: dekoratif matris flex
   akışına girip 490 px yer kaplıyor, metni ekranın ortasına itiyordu. */
.hero-grid-bg {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
}

/* ============================================ KOMBİNASYON KÜNYELERİ
   .combo-row .sw-* (0,2,0) kendi rengini korudu; zemin bu katmanda
   fildişine döndüğü icin "AA / AKs / AKo / Σ" beyaz üstüne beyaz kaldı. */
.combo-row .swatch,
.combo-row .sw-core,
.combo-row .sw-suited,
.combo-row .sw-offsuit {
  color: #16251D !important;
  -webkit-text-fill-color: #16251D !important;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255,255,255,.65);
  border: 1px solid rgba(23,21,19,.34) !important;
}
.combo-row .sw-core {
  background: linear-gradient(180deg, #FFF3C6, #E7C25A 52%, #B8912E) !important;
  border-color: rgba(60,43,4,.5) !important;
}
.combo-row .swatch[style] {
  background: linear-gradient(180deg, #2B3B31, #16251D) !important;
  color: #FFF8E6 !important;
  -webkit-text-fill-color: #FFF8E6 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.7);
  border-color: rgba(240,201,99,.55) !important;
}
.combo-card .ch span { color: #CFC6AE !important; }
