/* Tüm panel çerçevelerinde, öndeki sistem kartındaki gibi nabız atan altın parlama.
   Kapatmak için bu dosyanın bağlantısını sayfalardan kaldırmak yeterlidir. */
:root { --parla-az: 0 0 18px 3px rgba(255, 196, 90, .42), 0 0 48px 10px rgba(255, 170, 60, .24); --parla-cok: 0 0 30px 7px rgba(255, 210, 110, .68), 0 0 74px 18px rgba(255, 176, 64, .36); }
@keyframes cerceve-parla { 0%, 100% { box-shadow: var(--parla-az); } 50% { box-shadow: var(--parla-cok); } }
@keyframes cerceve-nabiz { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }

/* Kenarlığı gerçek olan çerçeveler */
.sinif-vitrin, .kutu, .liste, .sekmeler, .sahne, .pencere, .ferman-kagit, .ayna.secili { animation: cerceve-parla 2.8s ease-in-out infinite; }
.sahne, .sahne[open] { border-radius: 16px; }
.sahne[open], .pencere[open] { animation: acil .4s ease-out, cerceve-parla 2.8s ease-in-out .4s infinite; }
.kutu { animation: acil .6s ease-out, cerceve-parla 2.8s ease-in-out .6s infinite; border-color: rgba(255, 224, 150, .75); }
.liste, .sekmeler { border-color: rgba(255, 224, 150, .65); }

/* Oyun çerçeveli (köşeleri kesik) paneller: ışık ayrı bir katmanda */
.kesfet-pencere { position: relative; }
.pano::after, #siniflar .sinif-panel::after, .kesfet-pencere::after { content: ""; display: block; position: absolute; inset: -20px; width: auto; height: auto; rotate: none; border: 0; border-radius: 16px; background: none; box-shadow: var(--parla-cok); pointer-events: none; animation: cerceve-nabiz 2.8s ease-in-out infinite; }

@media (max-height: 700px) { .pano::after, #siniflar .sinif-panel::after { inset: -14px; } }
@media (max-width: 860px) {
  .pano::after, #siniflar .sinif-panel::after { inset: -12px; }
  .sinif-vitrin { animation: none; }
  .sinif-vitrin video { animation: cerceve-parla 2.8s ease-in-out infinite; }
}
@media (max-width: 700px) { .kesfet-pencere::after { inset: -9px; } }
@media (prefers-reduced-motion: reduce) {
  .sinif-vitrin, .kutu, .liste, .sekmeler, .sahne, .pencere, .ferman-kagit, .ayna.secili { animation: none !important; box-shadow: var(--parla-az); }
}

/* Butonlar: yalnızca giriş ekranı (üst menü ve karşılama) ile Oyuna Katıl bölümü */
@keyframes dugme-parla {
  0%, 100% { box-shadow: 0 0 10px 1px rgba(255, 196, 90, .45), 0 0 22px 4px rgba(255, 170, 60, .22); }
  50% { box-shadow: 0 0 18px 4px rgba(255, 214, 115, .82), 0 0 40px 9px rgba(255, 176, 64, .42); }
}
.ana .ust .ust-buton, .ana .ust .dugme, #ana-sayfa .dugme, #katil .dugme { border-color: #ffe3a0; animation: dugme-parla 2.8s ease-in-out infinite; }
@media (max-width: 760px) {
  @keyframes dugme-parla { 0%, 100% { box-shadow: 0 0 6px 0 rgba(255, 196, 90, .5); } 50% { box-shadow: 0 0 12px 3px rgba(255, 214, 115, .8); } }
}
@media (prefers-reduced-motion: reduce) { .ana .ust .ust-buton, .ana .ust .dugme, #ana-sayfa .dugme, #katil .dugme { animation: none !important; box-shadow: 0 0 12px 2px rgba(255, 196, 90, .5); } }
