/* Detay katmanı: app.css'in düz temasının üstüne küçük, el işi dokunuşlar (29 Kas).
   Hepsi bu dosyada; index.html'den bu satır çıkarılırsa site eski düz hâline döner.
   Kurallar: parlama/cam/radyal gradyan yok; hareketler kısa ve anlamlı; hareket azaltma tercihine uyulur. */

:root {
  --hud: var(--line2);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --cut: 10px;
}

/* Zemin: çok hafif kâğıt/toz dokusu (SVG gürültü, data: — CSP img-src izin veriyor) */
body {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html { scrollbar-color: var(--line2) #0f0e0d; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0f0e0d; }
::-webkit-scrollbar-thumb { background: var(--line2); border: 2px solid #0f0e0d; }
::-webkit-scrollbar-thumb:hover { background: var(--faint); }

/* Üst menü: en üstte ince turuncu hat; bağlantının altında soldan kayan çizgi */
.top { box-shadow: inset 0 2px 0 var(--accent); }
.menu a::after {
  content: ""; position: absolute; left: 9px; right: 9px; bottom: 0; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left center; transition: transform .2s var(--ease-out);
}
.menu a:hover::after { transform: scaleX(1); background: var(--faint); }
.menu a[aria-current="page"] { box-shadow: none; }
.menu a[aria-current="page"]::after { transform: scaleX(1); background: var(--accent); }
.logo img { transition: transform .25s var(--ease-out); }
.logo:hover img { transform: rotate(-6deg); }

/* Bölüm etiketi: önünde kısa çizgi; bölüm başlığının yanında sağa uzanan ince hat */
.eyebrow::before { content: ""; flex: none; width: 16px; height: 2px; background: currentColor; }
h2.sec-h, h3.sec-h { display: flex; align-items: center; gap: 14px; }
.row > h2.sec-h, .row > h3.sec-h { flex: 1 1 auto; }
h2.sec-h::after, h3.sec-h::after { content: ""; flex: 1 1 auto; min-width: 24px; height: 1px; background: var(--line); }

/* HUD köşe işaretleri: önemli kutuların alt köşelerinde küçük L çizgileri */
.status, .facts dl, .steps, .banlist, .login-box, .stats { position: relative; }
:is(.status, .facts dl, .steps, .banlist, .login-box)::after {
  content: ""; position: absolute; inset: -1px; pointer-events: none; z-index: 1;
  background:
    linear-gradient(var(--hud), var(--hud)) left top / 9px 2px no-repeat,
    linear-gradient(var(--hud), var(--hud)) left top / 2px 9px no-repeat,
    linear-gradient(var(--hud), var(--hud)) right top / 9px 2px no-repeat,
    linear-gradient(var(--hud), var(--hud)) right top / 2px 9px no-repeat,
    linear-gradient(var(--hud), var(--hud)) left bottom / 9px 2px no-repeat,
    linear-gradient(var(--hud), var(--hud)) left bottom / 2px 9px no-repeat,
    linear-gradient(var(--hud), var(--hud)) right bottom / 9px 2px no-repeat,
    linear-gradient(var(--hud), var(--hud)) right bottom / 2px 9px no-repeat;
}
.status { --hud: var(--accent); }
.status::after { background-size: 0 0, 0 0, 0 0, 0 0, 9px 2px, 2px 9px, 9px 2px, 2px 9px; }
.login-box { --hud: var(--accent); }
.login-box::after { background-size: 0 0, 0 0, 0 0, 0 0, 9px 2px, 2px 9px, 9px 2px, 2px 9px; }

/* Ana sayfa giriş alanı: sağda çok soluk çapraz tarama, sola doğru kaybolur */
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; right: calc(var(--gutter) * -1); width: 55%;
  pointer-events: none;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 10px);
  -webkit-mask-image: linear-gradient(to left, #000 20%, transparent);
  mask-image: linear-gradient(to left, #000 20%, transparent);
}
.hero h1 em { position: relative; }
.hero h1 em::after {
  content: ""; position: absolute; left: 2px; bottom: .02em; width: 1.1em; height: .07em; background: var(--accent);
}
.code { position: relative; padding-left: 26px; }
.code::before { content: ">"; position: absolute; left: 11px; color: var(--accent); }

/* Düğmeler: büyük düğmelerde kesik köşe, basınca 1px iniş, ok/simge sağa kayar */
.btn { transition: border-color .12s, background-color .12s, color .12s, transform .08s; }
.btn:active:not([disabled]) { transform: translateY(1px); }
.btn.big {
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.btn.big:focus-visible { clip-path: none; }
.btn svg { transition: transform .18s var(--ease-out); }
.btn:hover svg { transform: translateX(2px); }
.link { position: relative; }
.link:hover { text-decoration: none; }
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .18s var(--ease-out);
}
.link:hover::after { transform: scaleX(1); }

/* Alanlar: odakta solda turuncu çentik */
.input { transition: border-color .12s, box-shadow .12s; }
.input:focus { box-shadow: inset 3px 0 0 var(--accent), 0 0 0 1px var(--accent); }

/* Sekmeler: seçili sekmenin çizgisi soldan dolar */
.tab { position: relative; transition: color .12s; }
.tab[aria-selected="true"], .tab[aria-current="page"] { box-shadow: none; }
.tab::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease-out);
}
.tab[aria-selected="true"]::after, .tab[aria-current="page"]::after { transform: scaleX(1); }

/* Tablolar ve listeler: satır üzerine gelince solda ince işaret */
tbody tr { transition: background-color .12s; }
tbody tr:hover { box-shadow: inset 2px 0 0 var(--faint); }
.bl-list .bl-row { transition: background-color .12s; }
.bl-list .bl-row:hover { box-shadow: inset 2px 0 0 var(--accent); }
.rows li { transition: background-color .12s; }
tbody tr:nth-child(-n+3) .rank { font-weight: 700; }

/* Kutular: ızgara hücreleri üzerine gelince bir ton açılır */
.facts div, .steps li { transition: background-color .15s; }
.facts div:hover, .steps li:hover { background: var(--surface-2); }
.steps .n { display: inline-flex; align-items: center; gap: 8px; }
.steps .n::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }

/* Skin kartları: görsel hafifçe yükselir, altında zemin gölgesi; seçili kartın köşesinde çentik */
.skin { transition: border-color .12s, background-color .12s; }
.skin:hover { background: var(--surface-2); }
.skin img { transition: transform .22s var(--ease-out); }
.skin:hover img { transform: translateY(-3px) scale(1.03); }
.skin[aria-pressed="true"]::before {
  content: ""; position: absolute; top: 0; left: 0; width: 0; height: 0; z-index: 1;
  border-style: solid; border-width: 12px 12px 0 0; border-color: var(--accent) transparent transparent transparent;
}
.detail .pv {
  background:
    linear-gradient(to top, rgba(255, 91, 46, .07), transparent 45%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 24px),
    #0f0e0d;
}
.slot { transition: background-color .12s; }
.mark.set { transform: rotate(45deg); }

/* Sunucu açık noktası: yavaş halka (yalnız açıkken, anlam taşıyor) */
.dot.on { animation: ar-nabiz 2.4s ease-out infinite; }
@keyframes ar-nabiz {
  0% { box-shadow: 0 0 0 0 rgba(98, 204, 143, .55); }
  70% { box-shadow: 0 0 0 6px rgba(98, 204, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(98, 204, 143, 0); }
}
.slots span { transition: background-color .3s; }

/* Sayfa açılışı: içerik kısa bir solma ile gelir (yalnız opaklık; sabit konumlu öğeleri bozmaz) */
main .page { animation: ar-gel .24s ease-out both; }
@keyframes ar-gel { from { opacity: 0; } to { opacity: 1; } }

/* Alt bilgi: üst kenarda turuncu parça, bağlantılarda kısa ok */
.foot { position: relative; }
.foot::before {
  content: ""; position: absolute; top: -1px; height: 2px; width: 72px; background: var(--accent);
  left: max(var(--gutter), calc((100% - 1320px) / 2 + var(--gutter)));
}
.foot-col a { transition: color .12s, transform .15s var(--ease-out); }
.foot-col a:hover { transform: translateX(3px); }

/* Bildirim kutusu: aşağıdan kayarak gelir */
.toast { transition: opacity .15s, transform .2s var(--ease-out); transform: translate(-50%, 6px); }
.toast.show { transform: translate(-50%, 0); }

/* Hareket azaltma */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .skin:hover img, .foot-col a:hover, .btn:hover svg { transform: none; }
}

/* ---- 29 Kas 14:00: boş durumlar, telefon ana sayfa, profil/sıralama/maç cilası ---- */

/* Boş durum bloğu (app.js emptyState): simge + başlık + açıklama + düğmeler */
.empty-state {
  display: flex; align-items: flex-start; gap: 18px; padding: 26px 24px;
  border: 1px dashed var(--line2); border-radius: var(--r-md); background: var(--surface);
}
.empty-state svg {
  flex: none; width: 44px; height: 44px; padding: 9px; border: 1px solid var(--line2); border-radius: var(--r-sm);
  fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.empty-state strong { display: block; font-family: var(--cond); font-weight: 700; font-size: 22px; letter-spacing: .03em; text-transform: uppercase; }
.empty-state p { margin: 6px 0 0; max-width: 620px; }
.empty-state .mt-now { flex-basis: 100%; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.mt-now .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good, #3ecf8e); box-shadow: 0 0 0 3px rgba(62, 207, 142, .18); }
.filter[hidden] { display: none; }
.empty-state .btns { margin-top: 14px; }

/* Ana sayfa giriş düğmeleri telefonda: tek sütun, aynı genişlik; konsol komutu ile Kopyala yan yana */
@media (max-width: 640px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-cmd { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
  .hero-cmd > .dim { grid-column: 1 / -1; }
  .hero-cmd .code { min-width: 0; white-space: normal; overflow-wrap: anywhere; font-size: 13px; }
  .empty-state { flex-direction: column; gap: 12px; padding: 20px 18px; }
}

/* İstatistik kutuları: ince üst çizgi hover'da turuncuya döner, değer altında kısa çizgi */
.stats > div { position: relative; transition: background-color .15s; }
.stats > div::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: transparent; transition: background-color .15s;
}
.stats > div:hover { background: var(--surface-2); }
.stats > div:hover::before { background: var(--accent); }
.stats dt { display: flex; align-items: center; gap: 6px; }

/* Profil: büyük avatarın çevresinde HUD köşeleri */
.avatar.lg { box-shadow: 0 0 0 1px var(--line2); position: relative; }
.pr .row > .btns:first-child { gap: 18px; }

/* Sıralama kürsüsü: ilk üç kendi renginde ince sol şerit ve hover */
.podium li { position: relative; transition: background-color .15s; }
.podium li::after { content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 2px; background: var(--faint); }
.podium li.p1::after { background: var(--gold); }
.podium li.p2::after { background: var(--silver); }
.podium li.p3::after { background: var(--bronze); }
.podium li:hover { background: var(--surface-2); }

/* Ödül kartları: değer daha belirgin, boş kart soluk */
.award { transition: background-color .15s; }
.award:hover { background: var(--surface-2); }
.award.none { opacity: .7; }

/* Maç tablosu: skor rakamları sabit genişlik, kazanan tarafı belirgin */
.games td .tag { min-width: 92px; justify-content: center; }
.res .sc { font-family: var(--mono); }

@media (prefers-reduced-motion: reduce) {
  .stats > div, .stats > div::before, .podium li, .award { transition: none; }
}

/* Sıralama: dönemlik puan "+kazanılan / toplam" */
.pts-total { font-size: 13px; font-weight: 500; }
.pod-per { font-family: var(--cond); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--good); }
.pod-total { font-size: 13px; margin-top: 2px; }
