/* Kintsugi: gece moru zemin, sakura pembe, kırıkları birleştiren altın çatlaklar.
   Botun "Sinematik Sakura" kartlarıyla aynı aile. */

@font-face { font-family: 'Dela'; src: url('/fontlar/dela.woff2') format('woff2'); font-display: swap; }
/* Shippori'de ğ, ş, Ğ, İ, Ş yok: o harfler Playfair'den gelir, aynı aile adıyla tek yazı tipi gibi görünür. */
@font-face { font-family: 'Metin'; src: url('/fontlar/shippori-500.woff2') format('woff2'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: 'Metin'; src: url('/fontlar/shippori-800.woff2') format('woff2'); font-weight: 700 900; font-display: swap; }
@font-face { font-family: 'Metin'; src: url('/fontlar/playfair-500.woff2') format('woff2'); font-weight: 400 600; unicode-range: U+011E-011F, U+0130, U+015E-015F; font-display: swap; }
@font-face { font-family: 'Metin'; src: url('/fontlar/playfair-800.woff2') format('woff2'); font-weight: 700 900; unicode-range: U+011E-011F, U+0130, U+015E-015F; font-display: swap; }

:root {
  --gece0: #12091A;
  --gece1: #1A0F24;
  --gece2: #341A3A;
  --gece3: #4A2650;
  --pembe: #FFB3C8;
  --vurgu: #FF8FB1;
  --altin: #FFC400;
  --altin-acik: #FFE7A3;
  --altin-koyu: #B9831B;
  --beyaz: #FFF8FB;
  --soluk: #C9B3C9;
  --sonuk: #8E7A92;
  --yesil: #6FE0A8;
  --kirmizi: #FF6F6F;
  --cizgi: rgba(255, 179, 200, 0.14);
  --kart: linear-gradient(160deg, rgba(74, 38, 80, 0.55), rgba(26, 15, 36, 0.75));
  --golge: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
  --baslik: 'Dela', 'Metin', serif;
  --metin: 'Metin', 'Hiragino Mincho ProN', serif;
  --kenar: 16px;
  --en: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--metin);
  font-size: 17px;
  line-height: 1.6;
  color: var(--beyaz);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(255, 143, 177, 0.16), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(255, 196, 0, 0.06), transparent 60%),
    linear-gradient(180deg, var(--gece1) 0%, var(--gece0) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}
/* Film greni: düz renk yerine dokulu gece. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: var(--vurgu); color: var(--gece1); }
:focus-visible { outline: 2px solid var(--altin); outline-offset: 3px; border-radius: 6px; }

.ikon { width: 1.1em; height: 1.1em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- iskelet ---------- */

.sayfa { position: relative; z-index: 1; max-width: var(--en); margin: 0 auto; padding: 0 var(--kenar) 96px; }

.ust {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  background: linear-gradient(180deg, rgba(18, 9, 26, 0.85), rgba(18, 9, 26, 0.55));
  border-bottom: 1px solid var(--cizgi);
}
.ust-ic { max-width: var(--en); margin: 0 auto; padding: 12px var(--kenar); display: flex; align-items: center; gap: 20px; }
.marka { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--baslik); letter-spacing: 0.08em; font-size: 15px; }
.marka svg { width: 28px; height: 28px; }
.menu { display: flex; gap: 4px; margin-right: auto; }
.menu a {
  text-decoration: none; color: var(--soluk); font-size: 15px; padding: 6px 12px; border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.menu a:hover { color: var(--beyaz); background: rgba(255, 179, 200, 0.08); }
.menu a[aria-current='page'] { color: var(--gece1); background: var(--pembe); font-weight: 700; }
.hesap { display: flex; align-items: center; gap: 10px; }
.hesap img { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--altin-koyu); }

@media (max-width: 720px) {
  .ust-ic { flex-wrap: wrap; gap: 10px; }
  .menu { order: 3; width: 100%; overflow-x: auto; margin-right: 0; padding-bottom: 2px; }
  .menu a { white-space: nowrap; }
  .hesap { margin-left: auto; }
}

/* ---------- düğmeler ---------- */

.dugme {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.dugme:active { transform: translateY(1px) scale(0.98); }
.dugme.altin {
  color: #2A1600;
  background: linear-gradient(180deg, var(--altin-acik), var(--altin) 55%, #E0A800);
  box-shadow: 0 0 0 1px rgba(255, 231, 163, 0.6) inset, 0 10px 30px -10px rgba(255, 196, 0, 0.6);
}
.dugme.altin:hover { box-shadow: 0 0 0 1px rgba(255, 231, 163, 0.9) inset, 0 12px 40px -8px rgba(255, 196, 0, 0.8); }
.dugme.hayalet { border-color: rgba(255, 179, 200, 0.35); background: rgba(255, 179, 200, 0.05); }
.dugme.hayalet:hover { border-color: var(--pembe); background: rgba(255, 179, 200, 0.12); }
.dugme.kucuk { padding: 6px 12px; font-size: 14px; }
.dugme[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- altın çatlak ---------- */

.catlak { position: absolute; pointer-events: none; overflow: visible; }
.catlak path {
  fill: none;
  stroke: url(#altin-yol);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(255, 196, 0, 0.55));
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: ciz 2.4s cubic-bezier(0.65, 0, 0.25, 1) forwards;
}
.catlak path.ince { stroke-width: 1.1; opacity: 0.8; }
.catlak path:nth-child(2) { animation-delay: 0.5s; }
.catlak path:nth-child(3) { animation-delay: 0.9s; }
.catlak path:nth-child(4) { animation-delay: 1.3s; }
@keyframes ciz { to { stroke-dashoffset: 0; } }

/* ---------- yapraklar ---------- */

.yapraklar { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.yaprak {
  position: absolute; top: -40px;
  width: 14px; height: 12px;
  border-radius: 100% 0 100% 0;
  background: radial-gradient(circle at 30% 30%, #FFE3EC, var(--pembe) 55%, var(--vurgu));
  box-shadow: 0 0 12px rgba(255, 143, 177, 0.55);
  opacity: 0.75;
  animation: dus var(--sure, 16s) linear var(--gecikme, 0s) infinite;
}
@keyframes dus {
  0% { transform: translate3d(0, -5vh, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.75; }
  50% { transform: translate3d(var(--salinim, 60px), 50vh, 0) rotate(220deg); }
  90% { opacity: 0.6; }
  100% { transform: translate3d(calc(var(--salinim, 60px) * -0.5), 110vh, 0) rotate(420deg); opacity: 0; }
}

/* ---------- ortak bloklar ---------- */

.kart {
  position: relative;
  background: var(--kart);
  border: 1px solid var(--cizgi);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--golge);
  overflow: hidden;
}
/* Kartın köşesinde küçük bir altın onarım izi. */
.kart.onarim::after {
  content: '';
  position: absolute; right: -10px; top: 18px;
  width: 90px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--altin) 40%, var(--altin-acik));
  transform: rotate(-24deg);
  box-shadow: 0 0 10px rgba(255, 196, 0, 0.6);
  opacity: 0.8;
}
.etiket { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--vurgu); font-weight: 700; }
.soluk { color: var(--soluk); }
.sonuk { color: var(--sonuk); }
.baslik { font-family: var(--baslik); font-weight: 400; letter-spacing: 0.02em; line-height: 1.1; margin: 0; }
.kanji {
  position: absolute; pointer-events: none; user-select: none;
  font-family: var(--baslik); color: var(--pembe); opacity: 0.06; line-height: 1; white-space: nowrap;
}

.izgara { display: grid; gap: 18px; }

.durum-metni { text-align: center; padding: 80px 16px; }
.durum-metni .baslik { font-size: clamp(26px, 5vw, 40px); margin-bottom: 12px; }
.durum-metni p { max-width: 460px; margin: 0 auto 24px; }

.ilerleme { height: 10px; border-radius: 999px; background: rgba(255, 179, 200, 0.12); overflow: hidden; position: relative; }
.ilerleme > i {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--vurgu), var(--pembe) 60%, var(--altin-acik));
  box-shadow: 0 0 14px rgba(255, 179, 200, 0.6);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.ilerleme.altin > i { background: linear-gradient(90deg, var(--altin-koyu), var(--altin) 60%, var(--altin-acik)); box-shadow: 0 0 14px rgba(255, 196, 0, 0.55); }

.avatar { border-radius: 50%; object-fit: cover; background: var(--gece2); }

.belir { opacity: 0; transform: translateY(14px); animation: belir 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards; animation-delay: var(--d, 0s); }
@keyframes belir { to { opacity: 1; transform: none; } }

.iskelet { background: linear-gradient(90deg, rgba(255,179,200,.06), rgba(255,179,200,.14), rgba(255,179,200,.06)); background-size: 200% 100%; animation: parilti 1.4s infinite; border-radius: 12px; }
@keyframes parilti { to { background-position: -200% 0; } }

.bildirim {
  position: fixed; left: 50%; bottom: 24px; z-index: 50;
  transform: translate(-50%, 20px); opacity: 0;
  background: var(--gece2); border: 1px solid var(--cizgi); border-radius: 14px;
  padding: 12px 18px; box-shadow: var(--golge); display: flex; gap: 10px; align-items: center;
  transition: opacity 0.3s, transform 0.3s; max-width: calc(100vw - 32px);
}
.bildirim.acik { opacity: 1; transform: translate(-50%, 0); }
.bildirim.iyi .ikon { color: var(--yesil); }
.bildirim.kotu .ikon { color: var(--kirmizi); }

/* ---------- vitrin ---------- */

.kahraman { position: relative; min-height: min(86vh, 760px); display: grid; align-content: center; padding: 64px 0 40px; }
.kahraman .kanji { font-size: clamp(110px, 17vw, 210px); right: 0; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; opacity: 0.08; }
.kahraman .catlak { inset: 0; width: 100%; height: 100%; }
.kahraman h1 {
  font-size: clamp(56px, 13vw, 168px);
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, var(--beyaz) 30%, var(--pembe));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  position: relative;
}
.kahraman .alt { font-size: clamp(20px, 3vw, 28px); margin: 16px 0 0; max-width: 620px; }
.kahraman .alt b { color: var(--altin); font-weight: 800; text-shadow: 0 0 20px rgba(255, 196, 0, 0.35); }
.kahraman .eylemler { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.kahraman .sayac { margin-top: 28px; display: flex; align-items: center; gap: 10px; color: var(--soluk); }
.kahraman .sayac b { font-family: var(--baslik); font-weight: 400; color: var(--beyaz); font-size: 22px; }
.nabiz { width: 9px; height: 9px; border-radius: 50%; background: var(--yesil); box-shadow: 0 0 0 0 rgba(111, 224, 168, 0.6); animation: nabiz 2s infinite; }
@keyframes nabiz { 70% { box-shadow: 0 0 0 10px rgba(111, 224, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(111, 224, 168, 0); } }

.anlam { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 48px 0; }
.anlam .baslik { font-size: clamp(30px, 5vw, 52px); }
.anlam p { font-size: 19px; color: var(--soluk); margin: 18px 0 0; }
.anlam p b { color: var(--beyaz); }
.kase { position: relative; aspect-ratio: 1; max-width: 420px; justify-self: center; width: 100%; }
.kase svg { width: 100%; height: 100%; overflow: visible; }

.kase .catlak-grup path {
  fill: none; stroke: url(#altin-yol); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(255, 196, 0, 0.6));
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.kase.gorundu .catlak-grup path { animation: ciz 1.6s cubic-bezier(0.65, 0, 0.25, 1) forwards; }
.kase.gorundu .catlak-grup path:nth-child(2) { animation-delay: 0.35s; }
.kase.gorundu .catlak-grup path:nth-child(3) { animation-delay: 0.7s; }
.kase.gorundu .catlak-grup path:nth-child(4) { animation-delay: 1s; }

.vitrin-kartlar { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 24px; }
.hafta-kart { display: flex; gap: 18px; align-items: center; }
.hafta-kart img { width: 84px; height: 84px; border: 2px solid var(--altin); box-shadow: 0 0 24px rgba(255, 196, 0, 0.35); }
.hafta-kart .baslik { font-size: 26px; margin: 4px 0; }
.istatistik-satir { display: flex; gap: 16px; color: var(--soluk); font-size: 15px; }
.istatistik-satir span { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 820px) {
  .anlam { grid-template-columns: 1fr; gap: 24px; }
  .kahraman .kanji { opacity: 0.05; }
}

/* ---------- profil ---------- */

.profil-bas { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 48px 0 32px; }
.profil-bas .kanji { font-size: 260px; right: 0; top: -10px; }
.halka { position: relative; width: 148px; height: 148px; }
.halka img { width: 128px; height: 128px; position: absolute; inset: 10px; }
.halka svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.halka circle { fill: none; stroke-width: 5; }
.halka .iz { stroke: rgba(255, 179, 200, 0.14); }
.halka .dolu { stroke: url(#altin-yol); stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 196, 0, 0.6)); transition: stroke-dashoffset 1.4s cubic-bezier(0.22, 1, 0.36, 1); }
.profil-bas .ad { font-size: clamp(32px, 6vw, 56px); overflow-wrap: anywhere; }
.profil-bas .rol { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 15px; color: var(--soluk); }
.profil-bas .rol i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

.profil-izgara { grid-template-columns: repeat(12, 1fr); }
.profil-izgara > .seviye { grid-column: span 7; }
.profil-izgara > .lig { grid-column: span 5; }
.profil-izgara > .kucuk-kart { grid-column: span 3; }
.profil-izgara > .basarimlar { grid-column: span 12; }
@media (max-width: 860px) {
  .profil-izgara > .seviye, .profil-izgara > .lig { grid-column: span 12; }
  .profil-izgara > .kucuk-kart { grid-column: span 6; }
}
@media (max-width: 560px) { .profil-bas { grid-template-columns: 1fr; justify-items: start; } }

.dev-sayi { font-family: var(--baslik); font-size: clamp(56px, 9vw, 96px); line-height: 1; margin: 6px 0 16px; }
.dev-sayi small { font-size: 0.32em; color: var(--soluk); margin-left: 6px; }
.ara-satir { display: flex; justify-content: space-between; font-size: 14px; color: var(--soluk); margin-top: 8px; gap: 12px; }
.kucuk-kart .deger { font-family: var(--baslik); font-size: 28px; margin-top: 6px; overflow-wrap: anywhere; }
.kucuk-kart .ikon { color: var(--vurgu); width: 20px; height: 20px; }

.rozetler { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 16px; }
.rozet {
  display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--cizgi);
}
.rozet .simge { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.rozet .simge .ikon { width: 20px; height: 20px; }
.rozet b { display: block; font-size: 15px; }
.rozet small { color: var(--sonuk); font-size: 13px; line-height: 1.3; display: block; }
.rozet.kilitli { opacity: 0.45; filter: grayscale(0.8); }

/* ---------- sıralama ---------- */

.sekmeler { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 179, 200, 0.06); border: 1px solid var(--cizgi); margin: 8px 0 32px; }
.sekmeler button { border: 0; background: none; padding: 8px 18px; border-radius: 999px; cursor: pointer; color: var(--soluk); display: inline-flex; gap: 8px; align-items: center; font-weight: 700; }
.sekmeler button[aria-selected='true'] { background: var(--pembe); color: var(--gece1); }

.podyum { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 16px; align-items: end; margin-bottom: 28px; }
.podyum .kart { text-align: center; padding: 22px 14px; text-decoration: none; display: block; transition: transform 0.25s; }
.podyum .kart:hover { transform: translateY(-4px); }
.podyum img { width: 72px; height: 72px; margin: 0 auto 10px; border: 2px solid var(--cizgi); }
.podyum .bir img { width: 96px; height: 96px; border-color: var(--altin); box-shadow: 0 0 30px rgba(255, 196, 0, 0.4); }
.podyum .bir { padding-top: 30px; padding-bottom: 30px; }
.podyum .sira { font-family: var(--baslik); font-size: 40px; color: var(--pembe); opacity: 0.35; position: absolute; left: 14px; top: 6px; }
.podyum .bir .sira { color: var(--altin); opacity: 0.8; }
.podyum .ad { font-weight: 800; overflow-wrap: anywhere; }
.podyum .deger { font-family: var(--baslik); font-size: 22px; margin-top: 4px; }
@media (max-width: 640px) { .podyum { grid-template-columns: 1fr; } .podyum .bir { order: -1; } }

.liste { display: grid; gap: 8px; }
.satir {
  display: grid; grid-template-columns: 44px 44px 1fr auto; gap: 14px; align-items: center;
  padding: 10px 16px; border-radius: 16px; text-decoration: none;
  background: rgba(255, 255, 255, 0.025); border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
.satir:hover { background: rgba(255, 179, 200, 0.06); border-color: var(--cizgi); }
.satir.ben { border-color: var(--altin-koyu); background: rgba(255, 196, 0, 0.06); }
.satir .no { font-family: var(--baslik); color: var(--sonuk); text-align: center; }
.satir img { width: 44px; height: 44px; }
.satir .ad { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.satir .alt { font-size: 13px; color: var(--sonuk); }
.satir .deger { font-family: var(--baslik); font-size: 18px; text-align: right; }

/* ---------- panel ---------- */

.panel-izgara { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.isik { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.isik::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.isik.iyi { color: var(--yesil); }
.isik.kotu { color: var(--kirmizi); }
.isik.uyari { color: var(--altin); }
.bilgi-satir { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--cizgi); font-size: 15px; }
.bilgi-satir:last-child { border-bottom: 0; }
.bilgi-satir span:first-child { color: var(--soluk); }
.hata-kutusu { margin-top: 12px; padding: 12px; border-radius: 12px; background: rgba(255, 111, 111, 0.08); border: 1px solid rgba(255, 111, 111, 0.3); font-size: 14px; overflow-wrap: anywhere; }

.anahtar { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--cizgi); }
.anahtar button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; cursor: pointer; color: var(--soluk); font-weight: 700; }
.anahtar button[aria-pressed='true'] { background: var(--pembe); color: var(--gece1); }
.anahtar button[aria-pressed='true'].tehlikeli { background: var(--altin); }

.tablo { width: 100%; border-collapse: collapse; font-size: 15px; }
.tablo th { text-align: left; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--vurgu); padding: 8px 10px; }
.tablo td { padding: 10px; border-top: 1px solid var(--cizgi); vertical-align: middle; }
.tablo .kisi { display: flex; align-items: center; gap: 10px; }
.tablo .kisi img { width: 32px; height: 32px; }
.tablo-kaydir { overflow-x: auto; margin: 0 -8px; padding: 0 8px; }
.puan { font-family: var(--baslik); color: var(--altin); }

.is-satir { display: flex; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed var(--cizgi); font-size: 14px; }
.is-satir:last-child { border-bottom: 0; }
.is-satir .ne { flex: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .yapraklar { display: none; }
  .catlak path { stroke-dashoffset: 0; }
}
