/* ==================================================================
   Caylie — arayüz
   Koyu, mistik, altın vurgulu. Telefonda tek elle kullanılacak şekilde:
   büyük dokunma alanları, alt sekme çubuğu, güvenli alan boşlukları.
   ================================================================== */

:root {
  --bg:        #0b0912;
  --bg-2:      #120f1d;
  --bg-3:      #1a1528;
  --line:      #2a2340;
  --line-soft: #201a31;
  --ink:       #ece7f6;
  --ink-2:     #a79fc0;
  --ink-3:     #6f6789;
  --gold:      #f0a92a;
  --gold-soft: #ffe296;
  --purple:    #a855f7;
  --green:     #35d07f;
  --red:       #ff4d6d;
  --blue:      #3d9be9;

  --c-common:    #8b93a7;
  --c-rare:      #3d9be9;
  --c-epic:      #a855f7;
  --c-legendary: #f0a92a;
  --c-mythic:    #ff3f6e;

  --radius: 18px;
  --radius-s: 12px;
  --serif: ui-serif, "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tabh: 62px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* Gizleme, her zaman düzen kurallarını yenmeli. Aşağıdaki .gate/.modal/.reveal
   gibi katmanlar display:flex taşıyor; bu kural olmadan hidden çalışmaz ve
   sandık katmanı ekranı kaplar. */
[hidden] { display: none !important; }

html, body {
  margin: 0; padding: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  /* Yatay: tarayıcının "geri/ileri" kaydırma hareketini bastır, sekme
     geçişi bize kalsın. Dikey: kenarda zıplama sayfayı sürüklemesin. */
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  /* Yatay hareketi biz yönetiyoruz; dikey kaydırma serbest. */
  touch-action: pan-y;
}

/* Zemin rengi yalnızca html'de dursun.
   body'nin kendi arka planı olursa, arkadaki fotoğraf katmanının
   (body::before, z-index:-1) ÜSTÜNE boyanır ve fotoğrafı tamamen kapatır.
   Bu sıralama kuralı gözden kaçarsa fotoğraf sessizce görünmez olur. */
html { background-color: var(--bg); }
body { background-color: transparent; }

/* Zemindeki fotoğraf İKİ katman.
 *
 * Fotoğraf neredeyse kare, ekranlar ise geniş. Tek katmanla iki şeyi birden
 * yapmak mümkün değil: genişliği doldurursan yüzler kesiliyor, tamamını
 * gösterirsen sağda solda siyah kalıyor.
 *
 * Bu yüzden video oynatıcıların çözümü: altta fotoğrafın büyütülmüş ve
 * bulanıklaştırılmış kopyası boşlukları doldurur, üstte fotoğrafın tamamı
 * kesilmeden durur.
 */

/* ALT KATMAN — bulanık dolgu. Sadece boşluk doldurur, okunmaz. */
body::before {
  content: '';
  position: fixed; left: 0; right: 0; top: 0; height: 118%;
  z-index: -2; pointer-events: none;
  background: url('/img/gate-07ca5fead8c84a4c.jpg') center center / cover no-repeat;
  /* scale: bulanıklığın kenarlarda saydamlaşmasını gizler */
  transform: translate3d(0, calc(var(--bgy, 0) * -1px), 0) scale(1.18);
  filter: blur(30px) saturate(.75) brightness(.42);
  will-change: transform;
}

/* ÜST KATMAN — fotoğrafın tamamı + okunabilirlik perdesi. */
body::after {
  content: '';
  position: fixed; left: 0; right: 0; top: 0; height: 118%;
  z-index: -1; pointer-events: none;
  background:
    radial-gradient(90% 60% at 50% -10%, rgba(168,85,247,.10), transparent 60%),
    radial-gradient(70% 50% at 100% 100%, rgba(240,169,42,.05), transparent 60%),
    /* Perde: yüzlerin olduğu üst bantta açık, içeriğin yoğunlaştığı
       alt kısımda koyu. Telefon ölçüsüne göre ayarlı. */
    linear-gradient(180deg,
      rgba(11,9,18,.24) 0%,
      rgba(11,9,18,.30) 26%,
      rgba(11,9,18,.50) 44%,
      rgba(11,9,18,.86) 64%,
      rgba(11,9,18,.99) 82%),
    /* Üst çubuğun altından başlar: çentik payı + çubuk yüksekliği.
       Böylece iki yüz de çubuğun arkasında kalmaz. */
    url('/img/gate-07ca5fead8c84a4c.jpg')
      center calc(var(--safe-t) + 86px) no-repeat;

  /* TELEFON — asıl hedef ekran.
     %100 = tam kenardan kenara. Genişlik zaten dolu; üstüne çıkmak
     genişletmez, sadece Ceyda'nın saçını yandan kırpar. */
  background-size: auto, auto, auto, 100% auto;

  /* Kaydırma payı: app.js her karede --bgy değerini günceller. */
  transform: translate3d(0, calc(var(--bgy, 0) * -1px), 0);
  will-change: transform;
}

/* Geniş/basık ekran (masaüstü): fotoğraf YÜKSEKLİKTEN sınırlanır.
   Burada genişletmek için yüksekliği büyütmek gerekir; taşan kısım
   alttan kırpılır, yüzler üstte olduğu için etkilenmez.
   Eşik, fotoğrafın kendi en-boy oranı (1214/1295). */
@media (min-aspect-ratio: 1214/1295) {
  /* Burada bol pay var: yüzler %62'de bitiyor, kırpma ancak %160'tan
     sonra onlara dayanır. Rahatça büyütülebilir. */
  body::after { background-size: auto, auto, auto, auto 138%; }
}

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .01em; margin: 0; }
a { color: var(--gold); }

/* ==================== GİRİŞ ==================== */

/* Giriş ekranı kendi fotoğraf kopyasını taşımıyor: zemindeki iki katman
   (body::before / body::after) buradan da görünüyor. Saydam kalması yeter. */
.gate {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--safe-t) + 24px) 22px calc(var(--safe-b) + 24px);
  background: transparent;
  overflow: hidden;
}
/* Ek perde yalnızca altta: giriş düğmelerinin arkası koyulaşsın,
   üstteki yüzler açık kalsın. */
.gate::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(11,9,18,.30) 42%,
    rgba(11,9,18,.72) 74%,
    rgba(11,9,18,.90) 100%);
}
.gate-inner { position: relative; z-index: 1; width: 100%; max-width: 420px; text-align: center; }
.sigil {
  font-size: 54px; line-height: 1;
  filter: drop-shadow(0 0 22px rgba(240,169,42,.55));
  animation: breathe 4.5s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: .92; }
  50% { transform: scale(1.06); opacity: 1; }
}
.brand {
  font-size: 40px; letter-spacing: .26em; margin: 14px 0 0 0; padding-left: .26em;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-sub { color: var(--ink-3); font-size: 13px; letter-spacing: .16em; margin: 4px 0 34px; }

.gate-players { display: grid; gap: 12px; }
.gate-player {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  text-align: left; width: 100%;
  transition: transform .15s, border-color .2s;
}
.gate-player:active { transform: scale(.98); border-color: var(--gold); }
.gate-player .av { font-size: 30px; }
.gate-player b { display: block; font-size: 18px; font-family: var(--serif); }
.gate-player small { color: var(--ink-3); font-size: 12px; }

.gate-who { color: var(--ink-2); font-size: 14px; margin: 0 0 18px; }
.gate-who span { color: var(--gold); font-weight: 600; }
.pin-dots { display: flex; gap: 12px; justify-content: center; margin-bottom: 26px; height: 14px; }
.pin-dots i {
  width: 13px; height: 13px; border-radius: 50%;
  border: 1.5px solid var(--line); background: transparent;
  transition: background .15s, transform .15s;
}
.pin-dots i.on { background: var(--gold); border-color: var(--gold); transform: scale(1.15); }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pin-pad button {
  padding: 16px 0; font-size: 24px; font-family: var(--serif);
  border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line-soft);
}
.pin-pad button:active { background: var(--bg-3); border-color: var(--gold); }
.pin-pad button.ghost { background: transparent; border-color: transparent; font-size: 18px; color: var(--ink-3); }
/* Onay tuşu: yeterli hane girilince canlanır. Otomatik gönderim yok,
   çünkü PIN 4-8 hane olabiliyor ve uzunluğu bilemeyiz. */
.pin-pad button.ok {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  border-color: transparent; color: #2a1c00;
  box-shadow: 0 6px 20px -6px rgba(240,169,42,.6);
}
.pin-pad button:disabled { opacity: .35; }
.pin-hint {
  color: var(--ink-3); font-size: 12px; margin: -14px 0 20px;
  letter-spacing: .04em;
}
.pin-hint b { color: var(--gold); }
.link-btn { color: var(--ink-3); font-size: 14px; padding: 16px; }
.gate-msg { color: var(--red); font-size: 14px; min-height: 22px; margin: 14px 0 0; }

/* ==================== KABUK ==================== */

.topbar {
  position: sticky; top: 0; z-index: 30;
  padding: calc(var(--safe-t) + 10px) 16px 10px;
  /* Yarı saydam: arkasındaki fotoğraf görünsün. Okunabilirliği
     bulanıklaştırma sağlıyor, koyu bir katman değil. */
  background: linear-gradient(180deg, rgba(11,9,18,.80) 55%, rgba(11,9,18,.20));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
/* İçerikle aynı genişlikte kalsın — geniş ekranda dağılmasın. */
.tb-row { display: flex; align-items: center; gap: 12px; max-width: 620px; margin: 0 auto; }
.tb-av {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 13px;
  display: grid; place-items: center; font-size: 21px;
  background: var(--bg-3); border: 1px solid var(--line);
}
.tb-mid { flex: 1; min-width: 0; }
.tb-name { display: flex; align-items: baseline; gap: 7px; }
.tb-name b { font-family: var(--serif); font-size: 16px; }
.tb-name small { color: var(--ink-3); font-size: 11.5px; letter-spacing: .04em; }
.xpbar { height: 5px; border-radius: 3px; background: var(--bg-3); margin-top: 6px; overflow: hidden; }
.xpbar i {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  box-shadow: 0 0 10px rgba(240,169,42,.5);
  transition: width .6s cubic-bezier(.2,.8,.2,1);
}
.tb-streak {
  display: flex; align-items: center; gap: 5px; padding: 7px 11px;
  border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-soft);
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
.tb-streak.hot { border-color: rgba(240,169,42,.5); box-shadow: 0 0 16px rgba(240,169,42,.18); }
.tb-bell { position: relative; padding: 9px; font-size: 19px; }
.tb-bell i.dot {
  position: absolute; top: 4px; right: 4px; width: 8px; height: 8px;
  background: var(--red); border-radius: 50%; border: 2px solid var(--bg);
}

.view {
  padding: 4px 16px calc(var(--tabh) + var(--safe-b) + 26px);
  max-width: 620px; margin: 0 auto;
  animation: fade .25s ease;
  /* Yatay kaydırmayı biz yönetiyoruz; tarayıcı araya girmesin.
     Dikey kaydırma serbest kalır. */
  touch-action: pan-y;
  will-change: transform;
}
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Sekme geçişi: yeni içerik gidilen yönün tersinden girer. */
.view.kay-sol { animation: kay-sol .30s cubic-bezier(.25, .9, .3, 1); }
.view.kay-sag { animation: kay-sag .30s cubic-bezier(.25, .9, .3, 1); }
@keyframes kay-sol {
  from { opacity: .3; transform: translate3d(38px, 0, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes kay-sag {
  from { opacity: .3; transform: translate3d(-38px, 0, 0); }
  to   { opacity: 1; transform: none; }
}

/* Isı haritası kendi içinde yatay kayabilmeli. */
.heat { touch-action: pan-x pan-y; }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  padding-bottom: var(--safe-b);
  background: linear-gradient(180deg, rgba(20,16,32,.90), rgba(10,8,17,.96));
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-top: 1px solid var(--line-soft);
  /* üstte ince ışık çizgisi + yukarı doğru gölge: çubuk zeminden ayrılsın */
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 -14px 34px -20px rgba(0,0,0,1);
  isolation: isolate;
}

/* Etkin sekmenin altındaki ışıma — sekmeler arasında KAYAR.
   Konumu app.js'in verdiği --tab-i (0..5) belirler. */
.tabs::before {
  content: ''; position: absolute; inset: 0 auto 0 0;
  width: calc(100% / 6); pointer-events: none; z-index: -1;
  background: radial-gradient(68% 74% at 50% 8%, rgba(240,169,42,.20), transparent 72%);
  transform: translateX(calc(var(--tab-i, 0) * 100%));
  transition: transform .40s cubic-bezier(.34, 1.25, .38, 1);
}
/* Üstteki altın çizgi — o da kayar. */
.tabs::after {
  content: ''; position: absolute; top: 0; left: 0;
  width: calc(100% / 6); height: 2px; pointer-events: none;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, transparent 20%, var(--gold) 50%, transparent 80%);
  box-shadow: 0 0 14px rgba(240,169,42,.65);
  transform: translateX(calc(var(--tab-i, 0) * 100%));
  transition: transform .40s cubic-bezier(.34, 1.25, .38, 1);
}
/* Geniş ekranda ortada duran bir çubuğa dönüşsün. */
@media (min-width: 680px) {
  .tabs {
    max-width: 620px; margin: 0 auto;
    border-radius: 20px 20px 0 0;
    border-left: 1px solid var(--line-soft);
    border-right: 1px solid var(--line-soft);
  }
}
.tab {
  position: relative; padding: 10px 0 9px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--ink-3); transition: color .25s;
}
.tab span {
  font-size: 22px; line-height: 1;
  filter: grayscale(.6) opacity(.6);
  transition: filter .25s, transform .18s cubic-bezier(.3, 1.4, .4, 1);
}
.tab b {
  font-size: 10.5px; font-weight: 600; letter-spacing: .02em;
  transition: opacity .25s, transform .25s;
  opacity: .8;
}
.tab:active span { transform: scale(.86); }

.tab.active { color: var(--gold); }
.tab.active b { opacity: 1; text-shadow: 0 0 12px rgba(240,169,42,.5); }
.tab.active span {
  filter: none;
  /* seçildiği an bir kez zıplar, sonra hafif yukarıda kalır */
  animation: tab-pop .44s cubic-bezier(.3, 1.5, .4, 1) forwards;
}
@keyframes tab-pop {
  0%   { transform: translateY(0) scale(1); }
  45%  { transform: translateY(-6px) scale(1.24); }
  100% { transform: translateY(-2px) scale(1.10); }
}
/* Okunmamış işareti — hafifçe nabız atar ki gözden kaçmasın. */
.tab .dot {
  position: absolute; top: 7px; right: 50%; margin-right: -19px;
  width: 8px; height: 8px; background: var(--red); border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(10,8,17,.9);
  animation: dot-pulse 2.2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(10,8,17,.9), 0 0 0 0 rgba(255,77,109,.55); }
  55%      { box-shadow: 0 0 0 2px rgba(10,8,17,.9), 0 0 0 6px rgba(255,77,109,0); }
}

/* ==================== ORTAK PARÇALAR ==================== */

/* Kartlar arka plandaki fotoğrafın üstünde durduğu için yeterince
   opak olmalı — yazı fotoğrafla karışmasın. */
.card {
  background: linear-gradient(180deg, rgba(30,25,47,.94), rgba(18,15,29,.90));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  /* üstte ince bir ışık çizgisi + altta yumuşak gölge: yüzey hissi */
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 12px 30px -20px rgba(0,0,0,.95);
}
.card.tight { padding: 13px 14px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-h h2 { font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.card-h .more { color: var(--ink-3); font-size: 13px; }

.sect-title {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-3);
  margin: 24px 2px 11px;
}
.sect-title::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}
.muted { color: var(--ink-3); font-size: 13px; }
.empty { color: var(--ink-3); font-size: 14px; text-align: center; padding: 26px 12px; font-style: italic; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 18px; border-radius: 14px; font-weight: 600; font-size: 15px;
  background: var(--bg-3); border: 1px solid var(--line);
  transition: transform .12s, filter .2s;
}
.btn:active { transform: scale(.97); }
.btn.block { width: 100%; }
.btn.gold {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #2a1c00; border-color: transparent;
  box-shadow: 0 8px 28px rgba(240,169,42,.28);
}
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn.danger { border-color: rgba(255,77,109,.4); color: var(--red); background: rgba(255,77,109,.08); }
.btn.green { background: rgba(53,208,127,.12); border-color: rgba(53,208,127,.4); color: var(--green); }
.btn:disabled { opacity: .38; }
.btn.sm { padding: 8px 13px; font-size: 13px; border-radius: 11px; }

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  background: var(--bg-3); border: 1px solid var(--line-soft); color: var(--ink-2);
}
.row { display: flex; align-items: center; gap: 10px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

input[type="text"], input[type="number"], input[type="time"], textarea, select {
  width: 100%; padding: 13px 14px; border-radius: 13px;
  background: var(--bg); border: 1px solid var(--line);
  outline: none; font-size: 16px;
}
input:focus, textarea:focus, select:focus { border-color: var(--gold); }
textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
label.fld { display: block; margin-bottom: 13px; }
label.fld > span { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 6px; letter-spacing: .05em; }

/* ==================== BUGÜN ==================== */

.hero { text-align: center; padding: 12px 0 18px; }
.hero .date { font-family: var(--serif); font-size: 24px; }
/* Tek satırlık ipucu: süs değil, bilgi. Bu yüzden tırnaksız ve düz. */
.hero .tipline {
  color: var(--ink-2); font-size: 12.5px; line-height: 1.5;
  margin: 9px auto 0; max-width: 360px;
  /* Arkada fotoğraf var; gölge olmadan okunmuyor. */
  text-shadow: 0 1px 8px rgba(0,0,0,.9), 0 0 2px rgba(0,0,0,.7);
}
.hero .date {
  text-shadow: 0 2px 14px rgba(0,0,0,.8), 0 1px 3px rgba(0,0,0,.9);
}

.streakbox {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(240,169,42,.09), rgba(168,85,247,.07));
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.streakbox .flame { font-size: 34px; filter: drop-shadow(0 0 14px rgba(240,169,42,.5)); }
.streakbox .n { font-family: var(--serif); font-size: 34px; line-height: 1; }
.streakbox .lbl { font-size: 12px; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; }
.streakbox .mult {
  margin-left: auto; text-align: right;
}
.streakbox .mult b { font-family: var(--serif); font-size: 21px; color: var(--gold); }
.streakbox .mult small { display: block; font-size: 11px; color: var(--ink-3); }

/* ---- günün kartı: kapalı gelir, dokununca çevrilir ---- */
.daycard { perspective: 1200px; margin-bottom: 16px; min-height: 178px; }
.dc-inner {
  position: relative; width: 100%; min-height: 178px;
  transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.3, .9, .3, 1);
}
.daycard.open .dc-inner { transform: rotateY(180deg); }
.dc-back, .dc-front {
  position: absolute; inset: 0;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  border-radius: var(--radius); padding: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 5px;
}
.dc-back {
  background:
    repeating-linear-gradient(45deg, rgba(240,169,42,.045) 0 9px, transparent 9px 18px),
    linear-gradient(160deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
}
.dc-sigil {
  font-size: 40px; filter: drop-shadow(0 0 18px rgba(240,169,42,.5));
  animation: breathe 4s ease-in-out infinite;
}
.dc-lbl { font-size: 11px; letter-spacing: .26em; color: var(--gold); font-family: var(--serif); }
.dc-cta { font-size: 12px; color: var(--ink-3); }
.dc-front {
  transform: rotateY(180deg);
  background: linear-gradient(165deg, rgba(255,255,255,.045), var(--bg-2));
  border: 1px solid var(--cc, var(--line));
  box-shadow: inset 0 0 46px var(--cg, transparent), 0 0 22px var(--cg, transparent);
}
.dc-kind { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--cc); }
.dc-em { font-size: 40px; filter: drop-shadow(0 6px 18px rgba(0,0,0,.5)); }
.dc-front h3 { font-size: 20px; color: var(--cc); }
.dc-front p { margin: 3px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; max-width: 330px; }

/* ---- boss şeridi ---- */
.bossstrip {
  padding: 13px 15px; border-radius: var(--radius); margin-bottom: 12px;
  background: linear-gradient(180deg, rgba(255,63,110,.08), var(--bg-2));
  border: 1px solid var(--line);
}
.bs-top { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.bs-top .em { font-size: 21px; }
.hpbar.sm { height: 11px; margin: 9px 0 0; border-radius: 6px; }
.hpbar.sm span { font-size: 9.5px; }
.bs-move { margin-top: 9px; font-size: 12.5px; color: var(--ink-2); font-style: italic; line-height: 1.45; }
/* Sezon henüz başlamadıysa: uyuyan boss, geri sayım. */
.bossstrip.waiting {
  background: linear-gradient(180deg, rgba(255,63,110,.04), var(--bg-2));
  border-style: dashed;
}
.bossstrip.waiting .em { filter: grayscale(.55) opacity(.8); }

/* ---- eşin bugünkü durumu ---- */
.matestrip {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 15px; border-radius: var(--radius); margin-bottom: 12px;
  background: var(--bg-2); border: 1px solid var(--line-soft);
}
.matestrip .em { font-size: 23px; }
.matestrip b { font-size: 14.5px; }
.matestrip .ms-streak { font-size: 14px; font-weight: 600; white-space: nowrap; }
.matestrip.shine { border-color: rgba(240,169,42,.45); background: rgba(240,169,42,.06); }
.matestrip.veiled { border-style: dashed; opacity: .85; }

/* ---- sıradaki ödüller ---- */
.ms-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.ms-row + .ms-row { border-top: 1px solid var(--line-soft); }
.ms-ic { font-size: 19px; width: 24px; text-align: center; flex: 0 0 24px; }
.ms-l { font-size: 13.5px; margin-bottom: 5px; }
.mini { height: 5px; border-radius: 3px; background: var(--bg-3); overflow: hidden; }
.mini i {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--purple), var(--gold));
  transition: width .6s cubic-bezier(.2,.8,.2,1);
}

.vow {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 15px; border-radius: var(--radius-s);
  background: var(--bg-2); border: 1px solid var(--line-soft);
  margin-bottom: 9px; transition: border-color .2s, background .2s, transform .12s;
}
.vow:active { transform: scale(.99); }
/* İkon değil, ilerleme halkası: 21 günün kaçında olduğun buradan okunuyor. */
.vow .ic {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%;
  display: grid; place-items: center; padding: 2.5px; border: none;
  background: conic-gradient(
    var(--ring, var(--gold)) var(--p, 0%),
    rgba(255, 255, 255, .08) 0
  );
}
.vow .ic > span {
  width: 100%; height: 100%; border-radius: 50%;
  display: grid; place-items: center; font-size: 19px;
  background: var(--bg-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.vow .t { font-weight: 600; font-size: 15px; }
.vow .s { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.vow .mark {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 11px;
  display: grid; place-items: center; font-size: 16px;
  border: 1.5px solid var(--line); color: var(--ink-3);
}
.vow.done { border-color: rgba(53,208,127,.42); background: rgba(53,208,127,.07); }
.vow.done .mark { background: var(--green); border-color: var(--green); color: #04250f; }
.vow.done .ic { --ring: var(--green); }
.vow.done .ic > span { background: #14261d; }
.vow.failed .ic { --ring: rgba(255,77,109,.6); }
.vow.failed { border-color: rgba(255,77,109,.35); background: rgba(255,77,109,.05); opacity: .8; }
.vow.failed .mark { background: rgba(255,77,109,.16); border-color: var(--red); color: var(--red); }
.vow.locked { opacity: .5; }
.vow.locked .mark { border-style: dashed; }
.vow .shared-tag { color: var(--purple); }
/* Kuralın kendisi her gün görünsün — istisnalar burada yazılı. */
.vow .s.rule { margin-top: 3px; color: var(--ink-3); opacity: .9; line-height: 1.4; }

/* Henüz başlamamış sözler */
.upcoming { border-style: dashed; }
.up-h { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 9px; }
.up-row { display: flex; align-items: center; gap: 11px; padding: 7px 0; }
.up-row + .up-row { border-top: 1px solid var(--line-soft); }
.up-ic { font-size: 19px; width: 24px; text-align: center; flex: 0 0 24px; opacity: .75; }
.up-row b { font-size: 14px; }
.up-row .muted { font-size: 11.5px; line-height: 1.35; margin-top: 2px; }

.questcard {
  position: relative; overflow: hidden;
  padding: 17px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(168,85,247,.14), rgba(61,155,233,.07));
  border: 1px solid rgba(168,85,247,.32);
  margin-bottom: 14px;
}
.questcard::after {
  content: ''; position: absolute; top: -60%; left: -30%;
  width: 60%; height: 220%; transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  animation: sweep 5s ease-in-out infinite;
}
@keyframes sweep { 0% { left: -40%; } 60%, 100% { left: 130%; } }
.questcard .lbl { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--purple); }
.questcard h3 { font-size: 19px; margin: 5px 0 4px; }
.questcard p { margin: 0 0 13px; font-size: 14px; color: var(--ink-2); }
/* Kilitli ve kapalı sürpriz halleri */
.questcard.locked { opacity: .75; border-style: dashed; text-align: center; }
.questcard.locked p, .questcard.sealed p { margin-bottom: 0; }
.questcard.sealed {
  display: block; width: 100%; text-align: center;
  transition: transform .12s, border-color .2s;
}
.questcard.sealed:active { transform: scale(.985); border-color: var(--gold); }
.q-gift { font-size: 42px; margin: 8px 0 2px; }
.questcard.sealed .q-gift { animation: bob 2.2s ease-in-out infinite; }

.sealbar { margin-top: 20px; }
.sealbar .hint { text-align: center; color: var(--ink-3); font-size: 12.5px; margin-top: 9px; }
.sealed-note {
  padding: 15px; border-radius: var(--radius);
  background: rgba(53,208,127,.07); border: 1px solid rgba(53,208,127,.3);
  text-align: center;
}
.sealed-note b { font-family: var(--serif); font-size: 18px; }

/* ==================== SANDIK ==================== */

.chest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 11px; }
.chest {
  position: relative; aspect-ratio: 1; border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: var(--bg-2); border: 1px solid var(--line);
  overflow: hidden; transition: transform .15s;
}
.chest:active { transform: scale(.96); }
.chest .em { font-size: 33px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.5)); }
.chest .r { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.chest .src { font-size: 9.5px; color: var(--ink-3); text-align: center; padding: 0 6px; line-height: 1.25; }
.chest .lock { position: absolute; top: 7px; right: 8px; font-size: 13px; }
.chest[data-r="common"]    { border-color: rgba(139,147,167,.4); }
.chest[data-r="rare"]      { border-color: rgba(61,155,233,.5);  box-shadow: inset 0 0 30px rgba(61,155,233,.12); }
.chest[data-r="epic"]      { border-color: rgba(168,85,247,.55); box-shadow: inset 0 0 34px rgba(168,85,247,.16), 0 0 18px rgba(168,85,247,.13); }
.chest[data-r="legendary"] { border-color: rgba(240,169,42,.6);  box-shadow: inset 0 0 38px rgba(240,169,42,.18), 0 0 22px rgba(240,169,42,.18); }
.chest[data-r="mythic"]    { border-color: rgba(255,63,110,.65); box-shadow: inset 0 0 40px rgba(255,63,110,.2),  0 0 26px rgba(255,63,110,.24); animation: mythPulse 2.4s ease-in-out infinite; }
@keyframes mythPulse { 50% { box-shadow: inset 0 0 52px rgba(255,63,110,.3), 0 0 38px rgba(255,63,110,.36); } }
.chest.ready .em { animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px) rotate(-3deg); } }
.chest.opened { opacity: .42; filter: grayscale(.6); }

.env {
  padding: 15px 16px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line-soft);
  margin-bottom: 10px; border-left-width: 3px;
}
.env .r { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.env .txt { font-size: 15px; margin: 6px 0 12px; line-height: 1.5; }
.env.borc { border-style: dashed; }

.poolgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; text-align: center; }
.poolgrid div { padding: 10px 3px; border-radius: 11px; background: var(--bg); border: 1px solid var(--line-soft); }
.poolgrid b { display: block; font-family: var(--serif); font-size: 19px; }
.poolgrid small { font-size: 9.5px; color: var(--ink-3); letter-spacing: .04em; }
.poolgrid div.zero b { color: var(--red); }

.power {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px;
  border-radius: var(--radius-s); background: var(--bg-2);
  border: 1px solid var(--line-soft); margin-bottom: 9px;
}
.power .em { font-size: 24px; }
.power b { font-size: 14.5px; }
.power p { margin: 2px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.4; }
.power .cnt {
  min-width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--bg-3); font-size: 12px; font-weight: 700;
}

/* çark */
.wheel-wrap { text-align: center; padding: 8px 0 4px; }
.wheel-face {
  width: 132px; height: 132px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; font-size: 46px;
  background: conic-gradient(from 0deg,
    rgba(240,169,42,.3), rgba(168,85,247,.3), rgba(61,155,233,.3),
    rgba(255,63,110,.3), rgba(240,169,42,.3));
  border: 2px solid var(--line);
  box-shadow: 0 0 34px rgba(168,85,247,.24);
}
.wheel-face.spin { animation: spin 1.6s cubic-bezier(.2,.9,.15,1); }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(1440deg); } }

/* ==================== MESAJ ==================== */

.chat { display: flex; flex-direction: column; gap: 8px; }
.chat-day {
  align-self: center; font-size: 10.5px; color: var(--ink-3);
  letter-spacing: .1em; text-transform: uppercase;
  margin: 14px 0 4px;
}
.bubble {
  max-width: 80%; padding: 10px 14px; border-radius: 17px;
  font-size: 14.5px; line-height: 1.45;
  animation: rise-in .3s cubic-bezier(.2, .85, .25, 1) backwards;
}
.bubble .b-meta { font-size: 10.5px; color: var(--ink-3); margin-top: 4px; }
.bubble.mine {
  align-self: flex-end; border-bottom-right-radius: 6px;
  background: linear-gradient(180deg, rgba(240,169,42,.20), rgba(240,169,42,.11));
  border: 1px solid rgba(240,169,42,.36);
}
.bubble.theirs {
  align-self: flex-start; border-bottom-left-radius: 6px;
  background: linear-gradient(180deg, rgba(30,25,46,.85), rgba(18,15,29,.7));
  border: 1px solid var(--line-soft);
}
.bubble.nudge .b-text { font-weight: 600; }
.bubble.mine .b-meta { text-align: right; }

/* Yazma alanı — sekme çubuğunun hemen üstüne yapışır. */
.composer {
  position: sticky; z-index: 5;
  bottom: calc(var(--safe-b) + 10px);
  display: flex; gap: 9px; align-items: flex-end;
  margin: 18px 0 4px; padding: 9px;
  border-radius: 20px; border: 1px solid var(--line);
  background: rgba(18,15,29,.96);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px -18px rgba(0,0,0,.95);
}
.composer textarea {
  min-height: 46px; max-height: 140px; padding: 12px 13px;
  border-radius: 14px; resize: none;
}
.composer .btn { flex: 0 0 auto; padding-inline: 18px; }

.nudges { display: flex; flex-wrap: wrap; gap: 8px; }
.nudge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 999px; text-align: left;
  background: var(--bg-2); border: 1px solid var(--line-soft);
  font-size: 13px; color: var(--ink-2);
  transition: border-color .2s, transform .12s;
}
.nudge span { font-size: 16px; }
.nudge b { font-weight: 500; }
.nudge:active { border-color: var(--gold); transform: scale(.97); }

/* ==================== SEFER (boss) ==================== */

.boss-hero {
  text-align: center; padding: 22px 16px 18px; border-radius: var(--radius);
  background: radial-gradient(70% 90% at 50% 0%, rgba(255,63,110,.14), transparent 70%), var(--bg-2);
  border: 1px solid var(--line); margin-bottom: 14px;
}
.boss-hero .em { font-size: 62px; filter: drop-shadow(0 6px 26px rgba(255,63,110,.42)); animation: breathe 5s ease-in-out infinite; }
.boss-hero h2 { font-size: 22px; margin: 8px 0 3px; }
.boss-hero .tag { color: var(--ink-3); font-size: 13px; font-style: italic; }
.hpbar {
  height: 16px; border-radius: 9px; background: #241726; overflow: hidden;
  border: 1px solid var(--line); margin: 16px 0 7px; position: relative;
}
.hpbar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, #ff3f6e, #ff8a5c);
  box-shadow: 0 0 16px rgba(255,63,110,.5);
  transition: width .9s cubic-bezier(.2,.8,.2,1);
}
.hpbar span {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-shadow: 0 1px 3px rgba(0,0,0,.85);
}
.dmg-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.dmg-split div { padding: 11px; border-radius: 13px; background: var(--bg); border: 1px solid var(--line-soft); text-align: center; }
.dmg-split b { display: block; font-family: var(--serif); font-size: 20px; }
.dmg-split small { font-size: 11px; color: var(--ink-3); }

.duel { display: grid; gap: 9px; }
.duel-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px;
  border-radius: var(--radius-s); background: var(--bg-2); border: 1px solid var(--line-soft);
}
.duel-row.lead { border-color: rgba(240,169,42,.5); background: rgba(240,169,42,.06); }
.duel-row .xp { margin-left: auto; font-family: var(--serif); font-size: 19px; }

.penalty {
  padding: 14px 15px; border-radius: var(--radius-s); margin-bottom: 10px;
  background: rgba(255,77,109,.07); border: 1px solid rgba(255,77,109,.3);
}
.penalty.mine { background: rgba(168,85,247,.07); border-color: rgba(168,85,247,.3); }
.penalty .who { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.penalty .txt { font-size: 15px; margin: 5px 0 11px; }

/* ==================== KRONİK ==================== */

/* Takvim: satırlar haftanın günleri, sütunlar haftalar (GitHub düzeni). */
.heat {
  display: grid; gap: 4px;
  grid-template-rows: repeat(7, 1fr);
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
}
.heat i {
  aspect-ratio: 1; border-radius: 4px; background: var(--bg-3);
  border: 1px solid transparent; display: block; min-width: 0;
}
.heat i[data-v="0"] { background: #191428; }
.heat i[data-v="1"] { background: rgba(53,208,127,.24); }
.heat i[data-v="2"] { background: rgba(53,208,127,.5); }
.heat i[data-v="3"] { background: rgba(53,208,127,.82); }
.heat i[data-v="p"] { background: linear-gradient(135deg, var(--gold), var(--gold-soft)); box-shadow: 0 0 8px rgba(240,169,42,.5); }
.heat i[data-v="m"] { background: rgba(255,77,109,.35); }
.heat i[data-v="s"] { background: rgba(61,155,233,.45); }
.heat-legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 11px; font-size: 11px; color: var(--ink-3); }
.heat-legend span { display: inline-flex; align-items: center; gap: 5px; }
.heat-legend em { width: 10px; height: 10px; border-radius: 3px; display: inline-block; font-style: normal; }

.statgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.statgrid div { padding: 13px 8px; border-radius: 13px; background: var(--bg-2); border: 1px solid var(--line-soft); text-align: center; }
.statgrid b { display: block; font-family: var(--serif); font-size: 22px; }
.statgrid small { font-size: 10.5px; color: var(--ink-3); letter-spacing: .03em; }

.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px; }
.bdg {
  aspect-ratio: 1; border-radius: 15px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 6px;
  background: var(--bg-2); border: 1px solid var(--line-soft);
}
.bdg .em { font-size: 25px; }
.bdg small { font-size: 9px; line-height: 1.2; color: var(--ink-3); }
.bdg.locked { opacity: .34; filter: grayscale(1); }
.bdg.on[data-r="epic"] { border-color: rgba(168,85,247,.5); }
.bdg.on[data-r="legendary"] { border-color: rgba(240,169,42,.55); box-shadow: 0 0 16px rgba(240,169,42,.16); }
.bdg.on[data-r="mythic"] { border-color: rgba(255,63,110,.6); box-shadow: 0 0 18px rgba(255,63,110,.22); }

.deck { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.dcard {
  border-radius: 13px; padding: 11px 7px; text-align: center;
  background: var(--bg-2); border: 1px solid var(--line-soft);
}
.dcard .em { font-size: 25px; }
.dcard b { display: block; font-size: 10.5px; margin-top: 4px; }
.dcard.locked { opacity: .3; filter: grayscale(1); }

.evt { display: flex; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line-soft); }
.evt:last-child { border-bottom: none; }
.evt .em { font-size: 20px; width: 26px; text-align: center; flex: 0 0 26px; }
.evt .t { font-size: 14px; font-weight: 600; line-height: 1.35; }
.evt .b { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.45; }
.evt .w { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; margin-left: auto; padding-left: 8px; }

/* Dokunulabilir bildirim satırı */
.evt-tap {
  width: 100%; text-align: left; align-items: flex-start;
  border-radius: 12px; padding: 12px 10px;
  transition: background .18s, transform .12s;
}
.evt-tap:active { background: rgba(255,255,255,.05); transform: scale(.99); }
.evt-tap.yeni .em { color: var(--gold); }
.evt-tap.yeni .t { color: var(--ink); }
.evt-tap:not(.yeni) { opacity: .72; }

/* ==================== MODAL ==================== */

.modal {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(6,5,11,.82); backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade .2s ease;
}
.modal-card {
  width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  padding: 22px 20px calc(22px + var(--safe-b));
  border-radius: 26px 26px 0 0;
  background: var(--bg-2); border: 1px solid var(--line); border-bottom: none;
  animation: rise .28s cubic-bezier(.2,.9,.2,1);
}
@keyframes rise { from { transform: translateY(100%); } to { transform: none; } }
.modal-card h2 { font-size: 21px; margin-bottom: 6px; }
.modal-card .sub { color: var(--ink-3); font-size: 13.5px; margin: 0 0 18px; }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.modal-actions .btn { flex: 1; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 13px; border-radius: 11px; font-size: 13px;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink-2);
}
.chip.on { border-color: var(--gold); color: var(--gold); background: rgba(240,169,42,.09); }

.sugg {
  padding: 12px 13px; border-radius: 12px; background: var(--bg);
  border: 1px solid var(--line-soft); margin-bottom: 8px; font-size: 13.5px;
  text-align: left; width: 100%; line-height: 1.45;
}
.sugg:active { border-color: var(--gold); }

/* ==================== SANDIK AÇILIŞI ==================== */

.reveal {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 30px;
  background: radial-gradient(60% 50% at 50% 45%, rgba(0,0,0,.55), rgba(5,4,9,.96));
  backdrop-filter: blur(8px);
  text-align: center;
}
.reveal .big { font-size: 92px; filter: drop-shadow(0 10px 40px rgba(0,0,0,.7)); }
.reveal .big.shake { animation: shake .45s ease-in-out 3; }
@keyframes shake {
  0%, 100% { transform: rotate(0) scale(1); }
  25% { transform: rotate(-9deg) scale(1.05); }
  75% { transform: rotate(9deg) scale(1.05); }
}
.reveal .burst {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
  pointer-events: none; animation: fly .95s ease-out forwards;
}
@keyframes fly {
  from { transform: translate(0,0) scale(1); opacity: 1; }
  to { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}
.reveal h2 { font-size: 15px; letter-spacing: .3em; text-transform: uppercase; }
.reveal .items { display: grid; gap: 11px; width: 100%; max-width: 380px; }
.reveal .item {
  padding: 15px 16px; border-radius: var(--radius);
  background: rgba(20,16,32,.9); border: 1px solid var(--line);
  animation: pop .45s cubic-bezier(.2,1.3,.4,1) backwards;
  text-align: left;
}
@keyframes pop { from { transform: scale(.75); opacity: 0; } to { transform: none; opacity: 1; } }
.reveal .item .k { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.reveal .item .v { font-size: 15.5px; margin-top: 4px; line-height: 1.45; }
.reveal .item.env { border-color: var(--gold); background: rgba(240,169,42,.08); }

/* ==================== TOAST ==================== */

.toasts {
  position: fixed; left: 0; right: 0; z-index: 95;
  top: calc(var(--safe-t) + 8px);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none; padding: 0 14px;
}
.toast {
  padding: 12px 17px; border-radius: 14px; font-size: 14px; font-weight: 500;
  background: rgba(26,21,40,.97); border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(0,0,0,.5);
  animation: toastIn .3s cubic-bezier(.2,.9,.2,1);
  max-width: 460px;
}
.toast.err { border-color: rgba(255,77,109,.55); color: #ffd7de; }
.toast.ok { border-color: rgba(53,208,127,.5); }
@keyframes toastIn { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ==================== CİLA ==================== */

/* Sayılar satır değiştirirken zıplamasın. */
.streakbox .n, .streakbox .mult b, .statgrid b, .duel-row .xp,
.dmg-split b, .poolgrid b, .tb-streak, .hpbar span {
  font-variant-numeric: tabular-nums;
}

/* Ekran açılırken içerik sırayla yükselsin. */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.view > * { animation: rise-in .38s cubic-bezier(.2, .85, .25, 1) backwards; }
.view > *:nth-child(2)  { animation-delay: .03s; }
.view > *:nth-child(3)  { animation-delay: .06s; }
.view > *:nth-child(4)  { animation-delay: .09s; }
.view > *:nth-child(5)  { animation-delay: .12s; }
.view > *:nth-child(6)  { animation-delay: .15s; }
.view > *:nth-child(7)  { animation-delay: .18s; }
.view > *:nth-child(8)  { animation-delay: .20s; }
.view > *:nth-child(9)  { animation-delay: .22s; }
.view > *:nth-child(10) { animation-delay: .24s; }
.view > *:nth-child(n+11) { animation-delay: .26s; }

/* Tam genişlikteki altın düğme yavaşça parlasın — mühür anı önemli. */
.btn.gold.block { position: relative; overflow: hidden; }
.btn.gold.block::after {
  content: ''; position: absolute; top: -60%; left: -60%;
  width: 38%; height: 220%; transform: rotate(18deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent);
  animation: btn-shine 4.2s ease-in-out infinite;
}
@keyframes btn-shine { 0% { left: -60%; } 55%, 100% { left: 130%; } }

/* Oyuncunun kendi rengi üst çubukta görünsün — ikinizi ayırt etmek kolaylaşır. */
.tb-av {
  border: 1.5px solid var(--accent, var(--line));
  box-shadow: 0 0 20px -7px var(--accent, transparent);
}
.xpbar i { background: linear-gradient(90deg, var(--accent, var(--gold)), var(--gold-soft)); }

/* Söz satırlarına da yüzey hissi. */
.vow {
  background: linear-gradient(180deg, rgba(30, 25, 46, .93), rgba(18, 15, 29, .88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

/* Can barına bölme çizgileri — belli belirsiz, barı çizgili göstermeyecek kadar. */
.hpbar::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg,
    transparent 0 calc(10% - 1px), rgba(0, 0, 0, .18) calc(10% - 1px) 10%);
}
.hpbar span {
  text-shadow: 0 1px 3px rgba(0, 0, 0, .95), 0 0 10px rgba(0, 0, 0, .8);
}

/* Zincir kutusunda hafif bir kor ışıması. */
.streakbox { position: relative; overflow: hidden; }
.streakbox::before {
  content: ''; position: absolute; left: -50px; top: -95px;
  width: 190px; height: 190px; pointer-events: none;
  background: radial-gradient(circle, rgba(240, 169, 42, .2), transparent 70%);
}
.streakbox > * { position: relative; }

.hero .date { font-size: 26px; }

/* Bildirim kontrol listesi */
.chk { font-size: 13px; padding: 5px 0; line-height: 1.45; }
.chk + .chk { border-top: 1px solid var(--line-soft); }
.chk.on { color: var(--ink-2); }
.chk.off { color: var(--ink-3); }

/* QR ile telefona aktarma */
.qr-block {
  display: flex; align-items: center; gap: 15px;
  padding: 14px; margin-bottom: 15px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(240,169,42,.07), rgba(18,15,29,.5));
  border: 1px solid rgba(240,169,42,.28);
}
.qr-card {
  background: #fff; padding: 8px; border-radius: 13px; line-height: 0;
  box-shadow: 0 10px 26px -14px rgba(0,0,0,.9);
}
.qr-card img { display: block; width: 132px; height: 132px; }
.qr-block b { font-size: 14.5px; }
.qr-block a.btn { text-decoration: none; }

/* Kurulum adımları */
.steps { margin: 0; padding-left: 21px; font-size: 14px; line-height: 1.6; }
.steps li { margin-bottom: 11px; }
.steps li:last-child { margin-bottom: 0; }
.steps code {
  display: inline-block; margin: 5px 0;
  background: var(--bg); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 8px; font-size: 13.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--gold); user-select: text; -webkit-user-select: text;
}

/* ==================== iPHONE ==================== */

html { -webkit-text-size-adjust: 100%; }
body { min-height: 100dvh; }

/* Arayüz öğelerinde uzun basınca seçim/kopyala menüsü çıkmasın,
   çift dokunuşta sayfa yakınlaşmasın. */
.topbar, .tabs, .tab, .btn, .vow, .chest, .daycard, .questcard,
.streakbox, .bossstrip, .matestrip, .pin-pad button, .gate-player,
.chip, .sugg, .power, .bdg, .dcard, .ms-row, .up-row, .sect-title {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}
/* Okunacak metinler seçilebilir kalsın — zarf metnini kopyalamak isteyebilirsiniz. */
.env .txt, .evt .t, .evt .b, .reveal .item .v, .modal-card p, .dc-front p,
input, textarea {
  -webkit-user-select: text; user-select: text; -webkit-touch-callout: default;
}

/* Kaydırma yumuşak olsun, pencere içindeki kaydırma sayfayı sürüklemesin. */
.modal-card { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }

/* Parmakla kullanılan her şey en az 44px yüksekliğinde olsun — Apple'ın
   önerdiği asgari dokunma alanı. Fareyle kullanırken küçük kalabilirler. */
@media (pointer: coarse) {
  .btn { min-height: 48px; }
  .btn.sm { min-height: 42px; padding-inline: 15px; }
  .chip { min-height: 42px; }
  .tab { min-height: 52px; }
  .vow .mark { width: 40px; height: 40px; flex-basis: 40px; }
  .tb-bell { min-width: 44px; min-height: 44px; }
  .sugg { min-height: 46px; }
  .pin-pad button { min-height: 58px; }
}

/* Ana ekrandan açıldığında alt çubuk için biraz daha nefes payı. */
@supports (-webkit-touch-callout: none) {
  .view { padding-bottom: calc(var(--tabh) + var(--safe-b) + 34px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
