/* ============================================================
   HEDİYE ÇARKI — js/HediyeCarki.js modal stili (2026-08-01)
   Slot SIRASI Unity WHEEL_SLOTS ile birebir (winningIndex yük taşır);
   görsel dil site temasına özgü. Dilim: 8 × 45°, ok üstte.
   ============================================================ */
/* 🔴 Z-INDEX (2026-08-23): bu overlay 220'deydi — DOCK'un (side-nav, z-index 1100) ALTINDA.
   Sonuç: modal açıkken oyuncu dock'tan BAŞKA moda geçebiliyor ve claim akışı yarıda kesilebiliyordu
   (sunucu çağrısı uçarken panel kapanır, ödül gösterilmez ama VERİLMİŞ olur → "aldım mı almadım mı").
   Kardeş paneller (gorev/lig/magaza) zaten 1200'de; bu ikisi istisnaydı. */
.hc-overlay {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(30, 18, 8, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
/* `hidden` gizlemesi TEK YASA'dan gelir: style.css `[hidden]{display:none !important}` — buraya KOPYA yazma. */
.hc-panel {
  position: relative;
  width: min(480px, 100%);
  background: var(--bg-card, #fbf0d6);
  border: 3px solid rgba(58, 36, 21, 0.25);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(30, 18, 8, 0.35);
  padding: 1.2rem 1.2rem 1.3rem;
  text-align: center;
}
.hc-kapat {
  position: absolute; right: 10px; top: 10px;
  width: 38px; height: 38px; border: 0; border-radius: 12px;
  background: rgba(209, 66, 66, 0.92); color: #fff;
  font-size: 1.05rem; font-weight: 800; cursor: pointer;
}
.hc-baslik { margin: 0 0 0.6rem; font-size: 1.25rem; }

.hc-cark-kap {
  --hc-cap: min(320px, 78vw);     /* dilim ötelemesi bu değerden türetilir (aşağıda) */
  position: relative;
  width: var(--hc-cap); aspect-ratio: 1;
  margin: 0 auto 0.9rem;
}
.hc-ok {
  position: absolute; left: 50%; top: -6px; z-index: 3;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 22px solid #d14242;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}
.hc-cark {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 8px solid #7a4f2a;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.35), 0 8px 20px rgba(30, 18, 8, 0.3);
  /* 8 dilim — dönüşümlü iki ton; dilim 0 merkezi ÜSTTE (ok hizası) */
  background: conic-gradient(from -22.5deg,
    #ffe9b8 0 45deg,  #ffd98c 45deg 90deg,
    #ffe9b8 90deg 135deg, #ffd98c 135deg 180deg,
    #ffe9b8 180deg 225deg, #ffd98c 225deg 270deg,
    #ffe9b8 270deg 315deg, #ffd98c 315deg 360deg);
  will-change: transform;
}
.hc-cark.donuyor { animation: hc-don 0.9s linear infinite; }   /* Unity BOS_TUR_SURESI */
@keyframes hc-don { to { transform: rotate(360deg); } }

/* Dilim içeriği: merkezden --hc-aci yönünde dışa taşınır.
   ⚠️ translateY(%) öğenin KENDİ yüksekliğine göredir (çark değil!) → çap değişkeninden türet. */
.hc-slot {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(var(--hc-aci)) translateY(calc(var(--hc-cap) * -0.34)) rotate(calc(-1 * var(--hc-aci)));
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  font-weight: 900; color: var(--ink, #3a2415); font-size: 0.82rem;
  pointer-events: none;
}
.hc-slot img { width: 24px; height: 26px; object-fit: contain; }
.hc-yumurta {
  width: 24px; height: 30px;
  border-radius: 50% 50% 50% 50% / 60% 60% 42% 42%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.85) 0 18%, transparent 40%),
              var(--hc-yum, #FFD34D);
  box-shadow: inset 0 -4px 6px rgba(0, 0, 0, 0.18);
}

.hc-cevir {
  border: 0; border-radius: 999px;
  background: linear-gradient(180deg, #ffb648, #f6821f);
  color: #fff; font-weight: 900; font-size: 1.05rem;
  padding: 0.6rem 2.4rem; cursor: pointer;
  box-shadow: 0 4px 0 #c05f10, 0 8px 18px rgba(30, 18, 8, 0.25);
}
.hc-cevir:disabled { filter: grayscale(0.7); opacity: 0.6; cursor: default; box-shadow: none; }
.hc-alt { min-height: 1.2em; margin-top: 0.6rem; font-weight: 700; color: var(--ink-muted, #6b584a); }

.hc-odul { margin-top: 0.8rem; border-top: 2px dashed rgba(58, 36, 21, 0.2); padding-top: 0.8rem; }
.hc-odul-baslik { font-size: 1.1rem; font-weight: 900; margin-bottom: 0.4rem; }
.hc-odul-liste { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hc-odul-rozet {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 2px solid rgba(58, 36, 21, 0.15);
  border-radius: 999px; padding: 4px 12px; font-weight: 800;
}
.hc-odul-rozet img { width: 20px; height: 22px; object-fit: contain; }

@media (prefers-reduced-motion: reduce) {
  .hc-cark.donuyor { animation: none; }
}

/* ── ÖDÜL SANDIKLARI (2026-08-23, plan adım 46a) ──────────────────────────────────────
   Unity `HediyeOdulPaneliController`ın iki slider'ı. Yerleşim web'e özgü (çarkın altında
   iki satır); HEDEFLER (7/15) ve ödül tabloları `js/OdulSandiklari.js`te Unity yasasıdır. */
.hc-sandiklar { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.hc-sandik {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 14px;
  background: rgba(255, 255, 255, .55);
}
.hc-sandik-hazir {
  box-shadow: inset 0 0 0 2px var(--accent-green, #4caf50);
  animation: hc-sandik-nabiz 1.4s ease-in-out infinite;
}
@keyframes hc-sandik-nabiz { 0%,100% { transform: scale(1); } 50% { transform: scale(1.02); } }
.hc-sandik-ikon { width: 26px; height: 26px; flex: 0 0 26px; font-size: 22px; line-height: 26px; text-align: center; }
.hc-sandik-orta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hc-sandik-orta b { font-size: .82rem; font-weight: 800; color: var(--ink, #3a2415); }
.hc-sandik-bar { display: block; height: 8px; border-radius: 999px; background: rgba(0,0,0,.12); overflow: hidden; }
.hc-sandik-bar > i { display: block; height: 100%; background: linear-gradient(90deg, #6fbf5f, #4c9c3f); }
.hc-sandik-sayi { font-size: .78rem; font-weight: 800; opacity: .75; white-space: nowrap; }
.hc-sandik-al { padding: 5px 12px; font-size: .8rem; }
