/* Kış Kampı (cogs/kis_kampi.py) — yalnız tema açıkken yüklenir; her kural html.kis altında. Taslak docs/kis-taslak.html.
   Süsler dekoratif: pointer-events yok, düzen kaymaz (mutlak konum). Hareketi azaltta döngüler 2× yavaş. */
@keyframes kis-isik { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes kis-parla { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
@keyframes kis-tst { from { opacity: 0; transform: translate(-50%, 12px); } }
/* soğuk mavi üst ton (mevcut arka plan katmanlarının üstünde, içeriğin altında) */
html.kis .shell { background-image: linear-gradient(180deg, rgba(120,165,220,.13), rgba(120,165,220,.05) 360px, transparent 720px); }
html.kis[data-theme="acik"] .shell { background-image: linear-gradient(180deg, rgba(90,140,200,.12), rgba(90,140,200,.04) 360px, transparent 720px); }
/* ---- ışık zinciri (üst barın alt kenarında sarkar) ---- */
html.kis .kis-isik { position: absolute; left: 0; right: 0; bottom: -13px; z-index: 1; height: 16px; display: flex; justify-content: space-around;
  padding: 0 2%; pointer-events: none; }
html.kis .kis-isik::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; border-bottom: 1.5px solid rgba(60,50,40,.9);
  border-radius: 0 0 50% 50% / 0 0 100% 100%; }
html.kis[data-theme="acik"] .kis-isik::before { border-bottom-color: rgba(70,55,40,.55); }
html.kis .kis-isik i { --c: #ff4d4d; position: relative; top: 6px; width: 8px; height: 11px; border-radius: 50% 50% 45% 45%; background: var(--c);
  box-shadow: 0 0 8px var(--c), 0 0 16px var(--c); animation: kis-isik 1.6s ease-in-out infinite; }
html.kis .kis-isik i::before { content: ""; position: absolute; left: 2px; top: -3px; width: 4px; height: 4px; border-radius: 1px; background: #3a3128; }
html.kis .kis-isik .c1 { --c: #ffd24d; } html.kis .kis-isik .c2 { --c: #4dff88; } html.kis .kis-isik .c3 { --c: #4dc3ff; }
html.kis .kis-isik .g1 { animation-delay: .2s; } html.kis .kis-isik .g2 { animation-delay: .4s; } html.kis .kis-isik .g3 { animation-delay: .6s; }
html.kis .kis-isik .g4 { animation-delay: .8s; } html.kis .kis-isik .g5 { animation-delay: 1s; } html.kis .kis-isik .g6 { animation-delay: 1.2s; }
/* ---- ❄️ Kar düğmesi (v3: üst barda 38px ikon kutusu; "Kar" yazısı yalnız ekran okuyucuda kalır, title'da) ---- */
html.kis .kis-kar { display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; padding: 0; border-radius: 11px; cursor: pointer;
  font-size: 0; color: #9fd8ff; background: rgba(255,255,255,.03); border: 1px solid var(--line2); }
html.kis .kis-kar span { font-size: 15px; line-height: 1; }
html.kis .kis-kar[aria-pressed="true"] { background: rgba(111,195,255,.14); border-color: rgba(111,195,255,.45); }
html.kis[data-theme="acik"] .kis-kar[aria-pressed="true"] { background: rgba(60,120,180,.12); border-color: rgba(60,120,180,.4); }
html.kis .kis-kar[hidden] { display: none; }
html.kis .kis-kar:focus-visible { outline: 2px solid #8fd4ff; outline-offset: 2px; }
/* ---- kar birikintisi: v3'te YALNIZ büyük üst kartta (ana sayfa vitrini .a2-vt); diğer kart üstlerinde kar yok ---- */
html.kis .a2-vt::after { content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: 5; height: 10px; pointer-events: none; opacity: .9;
  background: radial-gradient(14px 8px at 14px 0, #f4f7fb 98%, transparent) 0 0 / 46px 10px repeat-x, linear-gradient(#f4f7fb, #f4f7fb) 0 0 / 100% 3px no-repeat;
  filter: drop-shadow(0 2px 1px rgba(0,0,0,.35)); }
/* ---- Noel şapkası: logodaki mum + podyumdaki ilk 3 avatar (sol üst, eğik) ---- */
html.kis .top .candle::after { content: ""; position: absolute; left: -9px; bottom: calc(100% + 3px); width: 19px; height: 17px; pointer-events: none;
  background: url("/static/img/kis/sapka.svg") center / contain no-repeat; transform: rotate(-22deg); filter: drop-shadow(0 1px 1px rgba(0,0,0,.5)); }
html.kis .sr-pd .sr-halka::before { content: ""; position: absolute; z-index: 4; left: -9%; top: -17%; width: 50%; aspect-ratio: 64 / 56; pointer-events: none;
  background: url("/static/img/kis/sapka.svg") center / contain no-repeat; transform: rotate(-26deg); filter: drop-shadow(0 2px 3px rgba(0,0,0,.55)); }
/* ---- kar yağışı tuvali: içeriğin üstünde, üst bar (20) / menü / çekmecelerin altında ---- */
html.kis .kis-tuval { position: fixed; inset: 0; z-index: 15; width: 100%; height: 100%; pointer-events: none; }
html.kis .kis-tane { position: fixed; left: 0; top: 0; z-index: 16; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle at 40% 38%, #ffffff 0 18%, #cfeeff 32%, #7fc7ff 58%, rgba(80,170,255,0) 72%);
  box-shadow: 0 0 18px 4px rgba(120,200,255,.55); animation: kis-parla 1.2s ease-in-out infinite; will-change: transform; }
html.kis .kis-tane::after { content: "❄"; position: absolute; inset: 0; display: grid; place-items: center; font: 700 16px/1 system-ui, sans-serif; color: #eaf7ff;
  text-shadow: 0 0 6px #8fd4ff; }
html.kis .kis-tane:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
html.kis .kis-toast { position: fixed; left: 50%; bottom: 22px; z-index: 96; max-width: min(92vw, 420px); padding: 11px 16px; border-radius: 12px;
  transform: translateX(-50%); font: 800 .88rem/1.4 "Segoe UI", system-ui, sans-serif; color: #eaf7ff; background: #142132; border: 1px solid rgba(140,200,240,.5);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.8); animation: kis-tst .35s cubic-bezier(.2,.8,.2,1) both; transition: opacity .4s; }
html.kis .kis-toast.git { opacity: 0; }
/* ---- 🎄 Yılbaşına (ana sayfa, v3): tek satır ince şerit .kart; sayaç kutuları sağda; telefonda alt satırda eşit genişlikte ---- */
html.kis .kis-sayac { display: flex; align-items: center; gap: 14px; padding: 12px 20px; }
html.kis .kis-cam { font-size: 22px; line-height: 1; }
html.kis .kis-sayac h2 { margin: 0; font: 400 1.5rem/1.05 var(--tt); color: var(--ink); }
html.kis .kis-cd { display: flex; gap: 8px; margin-left: auto; }
html.kis .kis-cd div { display: flex; align-items: baseline; gap: 6px; padding: 6px 14px; border-radius: 11px; background: rgba(255,255,255,.035); border: 1px solid var(--line); }
html.kis .kis-cd b { font: 400 1.6rem/1 var(--tt); color: var(--ink); font-variant-numeric: tabular-nums; }
html.kis .kis-cd small { font: 700 12px var(--ui); color: var(--mut); }
html.kis .kis-mutlu { margin: 0 0 0 auto; font: 400 1.4rem/1.2 var(--tt); color: #dff2ff; }
html.kis .kis-mutlu[hidden], html.kis .kis-cd[hidden] { display: none; }
html.kis[data-theme="acik"] .kis-cd div { background: rgba(42,31,24,.04); }
html.kis[data-theme="acik"] .kis-mutlu { color: #1f4c6b; }
@media (max-width: 759px) {
  html.kis .kis-sayac { flex-wrap: wrap; padding: 12px 16px; }
  html.kis .kis-cd { margin-left: 0; width: 100%; }
  html.kis .kis-cd div { flex: 1; justify-content: center; min-width: 0; }
  html.kis .kis-mutlu { margin-left: 0; width: 100%; }
  html.kis .kis-isik i:nth-child(n+9) { display: none; }
}
/* ---- 🎄 üst bar çipi (v4, 29.11.2026; her sayfada, "● N seste"nin solunda; 1199px altında gizli; tema kapanınca HTML'de yok) ---- */
html.kis .kis-yb { display: inline-flex; align-items: center; flex: none; height: 30px; padding: 0 10px; border-radius: 99px;
  border: 1px solid rgba(95,194,138,.25); background: rgba(95,194,138,.07); font: 700 11.5px var(--ui); color: var(--mut); white-space: nowrap; }
html.kis .kis-yb .kis-cd { display: inline; margin: 0; gap: 0; }
html.kis .kis-yb b { margin-left: 3px; font: 400 1rem/1 var(--tt); color: var(--ink); text-shadow: none; }
html.kis .kis-yb .kis-mutlu { margin: 0; font: 700 11.5px var(--ui); color: var(--ink); text-shadow: none; }
html.kis .kis-yb [hidden] { display: none; }
html.kis .top .kis-yb + .online { margin-left: -14px; }
@media (max-width: 1439px) { html.kis .kis-yb { display: none; } }   /* 1200–1439 px üst bara sığmıyor (menüyle çakışıyordu) */
@media (prefers-reduced-motion: reduce) {
  html.kis .kis-isik i { animation: kis-isik 3.2s ease-in-out infinite !important; }
  html.kis .kis-isik .g1 { animation-delay: .4s !important; } html.kis .kis-isik .g2 { animation-delay: .8s !important; } html.kis .kis-isik .g3 { animation-delay: 1.2s !important; }
  html.kis .kis-isik .g4 { animation-delay: 1.6s !important; } html.kis .kis-isik .g5 { animation-delay: 2s !important; } html.kis .kis-isik .g6 { animation-delay: 2.4s !important; }
  html.kis .kis-tane { animation: kis-parla 2.4s ease-in-out infinite !important; }
  html.kis .kis-toast { animation: kis-tst .7s cubic-bezier(.2,.8,.2,1) both !important; }
}
