:root {
  --bg-dark: #060612;
  --text-main: #f1ecff;
  --text-soft: #cdc4eb;
  --accent-lavender: #c4b5fd;
  --accent-mint: #6ef5c8;
  --card-bg: rgba(9, 9, 24, 0.56);
  --card-bg-hover: rgba(18, 16, 44, 0.68);
  --card-inner-line: rgba(214, 204, 255, 0.44);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  overflow: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* =========================================
   1. KATMAN: ARKA PLAN, SİS & PARÇACIKLAR
   ========================================= */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-image {
  position: absolute;
  inset: -2%;
  background: url("assets/bg.jpg") center center / cover no-repeat;
  opacity: 0.52;
  animation: bg-breathe 18s ease-in-out infinite alternate;
  will-change: transform;
}

.bg-dim {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 70% at 50% 48%,
    rgba(6, 6, 18, 0.26) 0%,
    rgba(6, 6, 18, 0.68) 72%,
    rgba(5, 5, 15, 0.86) 100%
  );
}

.bg-aura {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 52vw;
  height: 68vh;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(167, 139, 250, 0.16) 0%,
    rgba(124, 58, 237, 0.07) 44%,
    rgba(6, 6, 18, 0) 72%
  );
  mix-blend-mode: screen;
  animation: aura-pulse 7.5s ease-in-out infinite alternate;
}

.mist-layer {
  position: absolute;
  left: -18%;
  right: -18%;
  bottom: -12%;
  height: 44%;
  pointer-events: none;
  filter: blur(28px);
  mix-blend-mode: screen;
}

.mist-1 {
  background:
    radial-gradient(ellipse 38% 55% at 22% 85%, rgba(167, 139, 250, 0.24), transparent 70%),
    radial-gradient(ellipse 42% 60% at 54% 92%, rgba(196, 181, 253, 0.22), transparent 72%),
    radial-gradient(ellipse 36% 52% at 82% 82%, rgba(139, 92, 246, 0.22), transparent 70%);
  animation: mist-drift-a 19s ease-in-out infinite alternate;
}

.mist-2 {
  background:
    radial-gradient(ellipse 34% 48% at 32% 88%, rgba(216, 180, 254, 0.16), transparent 68%),
    radial-gradient(ellipse 38% 52% at 70% 90%, rgba(167, 139, 250, 0.18), transparent 68%);
  animation: mist-drift-b 24s ease-in-out infinite alternate;
}

#magic-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 48%,
    rgba(4, 4, 14, 0.62) 100%
  );
}

/* =========================================
   2. KATMAN: KUTULARIN ÇEVRESİNDE DOLAŞAN RUHLAR
   ========================================= */
#spirits-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* =========================================
   3. KATMAN: 6 NUMARALI GOTİK KÖŞE ÇERÇEVELERİ
   ========================================= */
.gothic-frame {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.corner {
  position: absolute;
  width: clamp(140px, 17vw, 245px);
  height: clamp(140px, 17vw, 245px);
  filter:
    drop-shadow(0 0 5px rgba(218, 204, 255, 0.48))
    drop-shadow(0 0 14px rgba(146, 114, 255, 0.32));
}

.corner-tl { top: 4px; left: 4px; }
.corner-tr { top: 4px; right: 4px; transform: scaleX(-1); }
.corner-bl { bottom: 4px; left: 4px; transform: scaleY(-1); }
.corner-br { bottom: 4px; right: 4px; transform: scale(-1, -1); }

/* =========================================
   4. KATMAN: BAŞLIK & 2x3 + ORTA DURUM KARTI
   ========================================= */
.page-shell {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(22px, 3.8vh, 48px) clamp(24px, 5vw, 72px);
  gap: clamp(20px, 3.8vh, 42px);
}

.site-header {
  text-align: center;
}

.site-title {
  font-family: "Pirata One", Georgia, serif;
  font-weight: 400;
  font-size: clamp(3.4rem, 6.8vw, 5.6rem);
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: lowercase;
  background: linear-gradient(180deg, #ffffff 0%, #e4dcff 54%, #b29ff5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 0 14px rgba(196, 181, 253, 0.58))
    drop-shadow(0 0 36px rgba(139, 92, 246, 0.4));
}

.bento-grid {
  width: min(100%, 1160px);
  display: grid;
  grid-template-columns: minmax(255px, 1fr) minmax(255px, 0.9fr) minmax(255px, 1fr);
  align-items: stretch;
  gap: clamp(24px, 3.8vw, 56px);
}

.link-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(18px, 3.2vh, 32px);
}

/* =========================================
   OYMA METALİK GOTİK CAM KUTU TASARIMI
   ========================================= */
.relic-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  height: clamp(78px, 10.4vh, 98px);
  padding: 0 40px;
  text-decoration: none;
  color: var(--text-main);
  filter:
    drop-shadow(0 10px 24px rgba(3, 3, 14, 0.62))
    drop-shadow(0 0 14px rgba(176, 154, 255, 0.18));
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.28s ease;
}

.relic-card:hover,
.relic-card:focus-visible {
  outline: none;
  transform: translateY(-3px);
  filter:
    drop-shadow(0 14px 30px rgba(4, 3, 18, 0.72))
    drop-shadow(0 0 24px rgba(192, 168, 255, 0.42));
}

.relic-glass {
  position: absolute;
  inset: 1px;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(196, 186, 248, 0.11) 0%,
      rgba(12, 11, 30, 0.04) 11%,
      rgba(9, 9, 24, 0.02) 50%,
      rgba(12, 11, 30, 0.04) 89%,
      rgba(196, 186, 248, 0.11) 100%
    ),
    linear-gradient(
      180deg,
      rgba(226, 218, 255, 0.09) 0%,
      var(--card-bg) 26%,
      rgba(7, 7, 20, 0.64) 76%,
      rgba(176, 160, 242, 0.12) 100%
    );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    inset 0 0 24px rgba(132, 108, 232, 0.14),
    inset 0 1px 0 rgba(242, 236, 255, 0.22),
    inset 0 -1px 0 rgba(196, 181, 253, 0.18);
  -webkit-mask-image:
    radial-gradient(circle 8.5px at 0 0, transparent 8px, #000 8.5px),
    radial-gradient(circle 8.5px at 100% 0, transparent 8px, #000 8.5px),
    radial-gradient(circle 8.5px at 0 100%, transparent 8px, #000 8.5px),
    radial-gradient(circle 8.5px at 100% 100%, transparent 8px, #000 8.5px);
  mask-image:
    radial-gradient(circle 8.5px at 0 0, transparent 8px, #000 8.5px),
    radial-gradient(circle 8.5px at 100% 0, transparent 8px, #000 8.5px),
    radial-gradient(circle 8.5px at 0 100%, transparent 8px, #000 8.5px),
    radial-gradient(circle 8.5px at 100% 100%, transparent 8px, #000 8.5px);
  -webkit-mask-position: top left, top right, bottom left, bottom right;
  mask-position: top left, top right, bottom left, bottom right;
  -webkit-mask-size: 51% 51%;
  mask-size: 51% 51%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transition: background 0.28s ease, box-shadow 0.28s ease;
}

.relic-card:hover .relic-glass,
.relic-card:focus-visible .relic-glass {
  background:
    linear-gradient(
      90deg,
      rgba(220, 210, 255, 0.18) 0%,
      rgba(20, 17, 46, 0.08) 12%,
      rgba(16, 14, 38, 0.05) 50%,
      rgba(20, 17, 46, 0.08) 88%,
      rgba(220, 210, 255, 0.18) 100%
    ),
    linear-gradient(
      180deg,
      rgba(236, 228, 255, 0.14) 0%,
      var(--card-bg-hover) 26%,
      rgba(12, 11, 32, 0.72) 78%,
      rgba(198, 184, 255, 0.18) 100%
    );
  box-shadow:
    inset 0 0 28px rgba(176, 152, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(226, 216, 255, 0.28);
}

.relic-rail {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.28s ease, box-shadow 0.28s ease;
}

.rail-top {
  top: 0.5px;
  left: 8px;
  right: 8px;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(224, 216, 255, 0.8) 0%,
    rgba(162, 150, 218, 0.48) 32%,
    rgba(218, 208, 255, 0.68) 50%,
    rgba(162, 150, 218, 0.48) 68%,
    rgba(224, 216, 255, 0.8) 100%
  );
  box-shadow: 0 0 6px rgba(206, 194, 255, 0.28);
}

.rail-bottom {
  bottom: 0.5px;
  left: 8px;
  right: 8px;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(214, 204, 252, 0.76) 0%,
    rgba(150, 138, 206, 0.44) 32%,
    rgba(208, 196, 250, 0.64) 50%,
    rgba(150, 138, 206, 0.44) 68%,
    rgba(214, 204, 252, 0.76) 100%
  );
  box-shadow: 0 0 6px rgba(196, 182, 252, 0.25);
}

.rail-left {
  left: 0.5px;
  top: 8px;
  bottom: 8px;
  width: 2.2px;
  background: linear-gradient(
    180deg,
    rgba(196, 186, 246, 0.68) 0%,
    rgba(250, 246, 255, 0.96) 50%,
    rgba(196, 186, 246, 0.68) 100%
  );
  box-shadow: 0 0 9px rgba(224, 214, 255, 0.46);
}

.rail-right {
  right: 0.5px;
  top: 8px;
  bottom: 8px;
  width: 2.2px;
  background: linear-gradient(
    180deg,
    rgba(196, 186, 246, 0.68) 0%,
    rgba(250, 246, 255, 0.96) 50%,
    rgba(196, 186, 246, 0.68) 100%
  );
  box-shadow: 0 0 9px rgba(224, 214, 255, 0.46);
}

.inner-top { top: 5px; left: 65.5px; right: 23.5px; height: 1px; background: var(--card-inner-line); }
.inner-bottom { bottom: 5px; left: 23.5px; right: 65.5px; height: 1px; background: var(--card-inner-line); }
.inner-left { left: 5px; top: 45.5px; bottom: 23.5px; width: 1px; background: var(--card-inner-line); }
.inner-right { right: 5px; top: 23.5px; bottom: 45.5px; width: 1px; background: var(--card-inner-line); }

.relic-card:hover .inner-top,
.relic-card:hover .inner-bottom,
.relic-card:hover .inner-left,
.relic-card:hover .inner-right,
.relic-card:focus-visible .inner-top,
.relic-card:focus-visible .inner-bottom,
.relic-card:focus-visible .inner-left,
.relic-card:focus-visible .inner-right {
  background: rgba(232, 224, 255, 0.72);
}

.card-ornament {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  color: #e4dcff;
  opacity: 0.9;
  transition: opacity 0.28s ease, filter 0.28s ease;
}

.relic-card:hover .card-ornament,
.relic-card:focus-visible .card-ornament {
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(232, 222, 255, 0.72));
}

.orn-moon-tl { top: 0; left: 0; width: 68px; height: 48px; }
.orn-moon-br { bottom: 0; right: 0; width: 68px; height: 48px; transform: rotate(180deg); }
.orn-star-tr { top: 0; right: 0; width: 26px; height: 26px; transform: scaleX(-1); }
.orn-star-bl { bottom: 0; left: 0; width: 26px; height: 26px; transform: scaleY(-1); }

.relic-icon {
  position: relative;
  z-index: 2;
  width: clamp(26px, 2.35vw, 32px);
  height: clamp(26px, 2.35vw, 32px);
  fill: #e3dcff;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(196, 181, 253, 0.5));
  transition: transform 0.28s ease, fill 0.28s ease, filter 0.28s ease;
}

.relic-label {
  position: relative;
  z-index: 2;
  font-size: clamp(1.1rem, 1.5vw, 1.38rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ede7ff;
  text-shadow: 0 0 14px rgba(196, 181, 253, 0.36);
  transition: color 0.28s ease, text-shadow 0.28s ease;
}

.relic-card:hover .relic-icon,
.relic-card:focus-visible .relic-icon {
  fill: #ffffff;
  transform: scale(1.08);
  filter: drop-shadow(0 0 14px rgba(226, 216, 255, 0.8));
}

.relic-card:hover .relic-label,
.relic-card:focus-visible .relic-label {
  color: #ffffff;
  text-shadow: 0 0 16px rgba(226, 214, 255, 0.55);
}

/* =========================================
   ORTA YAYIN DURUMU KARTI (ÇEVRİMDIŞI & CANLI)
   ========================================= */
.center-slot {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.status-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 100%;
  padding: 24px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none;
  color: var(--text-main);
  background: linear-gradient(
    180deg,
    rgba(22, 18, 48, 0.52) 0%,
    rgba(9, 9, 24, 0.56) 45%,
    rgba(11, 10, 28, 0.62) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(214, 202, 255, 0.44);
  border-radius: 12px;
  box-shadow:
    0 12px 34px rgba(3, 3, 16, 0.6),
    0 0 22px rgba(167, 139, 250, 0.14),
    inset 0 1px 0 rgba(242, 236, 255, 0.2),
    inset 0 0 22px rgba(140, 114, 238, 0.1);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

.status-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(214, 202, 255, 0.22);
  border-radius: 7px;
  pointer-events: none;
  transition: border-color 0.35s ease;
}

.status-card:hover,
.status-card:focus-visible {
  outline: none;
  transform: translateY(-3px);
  border-color: rgba(236, 228, 255, 0.78);
  box-shadow:
    0 16px 40px rgba(4, 3, 18, 0.7),
    0 0 30px rgba(186, 160, 255, 0.32),
    inset 0 0 24px rgba(186, 160, 255, 0.15);
}

.status-card:hover::before,
.status-card:focus-visible::before {
  border-color: rgba(226, 216, 255, 0.44);
}

.status-star {
  position: absolute;
  width: 11px;
  height: 11px;
  color: rgba(228, 220, 255, 0.68);
  pointer-events: none;
  transition: color 0.35s ease, filter 0.35s ease;
}

.s-tl { top: 10px; left: 10px; }
.s-tr { top: 10px; right: 10px; }
.s-bl { bottom: 10px; left: 10px; }
.s-br { bottom: 10px; right: 10px; }

.live-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #cbc2e8;
  text-shadow: 0 0 10px rgba(196, 181, 253, 0.28);
  transition: color 0.35s ease, text-shadow 0.35s ease;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(196, 184, 238, 0.55);
  box-shadow: 0 0 8px rgba(196, 184, 238, 0.35);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.live-preview-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid rgba(214, 202, 255, 0.34);
  background: #080716;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  transition: border-color 0.35s ease;
}

.live-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.56) saturate(0.76);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.status-card:hover .live-preview-img {
  transform: scale(1.03);
}

.offline-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    ellipse at center,
    rgba(10, 9, 26, 0.18) 0%,
    rgba(6, 6, 18, 0.56) 100%
  );
  opacity: 1;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.offline-moon-svg {
  width: 48px;
  height: 48px;
  filter:
    drop-shadow(0 0 10px rgba(214, 202, 255, 0.5))
    drop-shadow(0 0 22px rgba(146, 114, 255, 0.35));
  animation: moon-float 5s ease-in-out infinite alternate;
}

.live-meta {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.live-title {
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.03em;
  color: #e4ddfb;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.live-viewers {
  font-size: 0.82rem;
  color: rgba(205, 196, 235, 0.72);
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
}

.status-card:hover .live-viewers {
  color: #f2edff;
}

/* =========================================
   CANLI YAYIN AKTİF DURUMU (data-live="true")
   ========================================= */
body[data-live="true"] .status-card {
  background: rgba(10, 14, 28, 0.58);
  border-color: rgba(110, 245, 200, 0.58);
  box-shadow:
    0 14px 40px rgba(3, 5, 16, 0.64),
    0 0 28px rgba(110, 245, 200, 0.18),
    inset 0 0 20px rgba(110, 245, 200, 0.09);
}

body[data-live="true"] .status-card::before {
  border-color: rgba(110, 245, 200, 0.24);
}

body[data-live="true"] .status-card:hover,
body[data-live="true"] .status-card:focus-visible {
  border-color: rgba(145, 255, 218, 0.88);
  box-shadow:
    0 18px 46px rgba(3, 6, 18, 0.74),
    0 0 38px rgba(110, 245, 200, 0.32),
    inset 0 0 24px rgba(110, 245, 200, 0.14);
}

body[data-live="true"] .status-star {
  color: rgba(168, 255, 226, 0.82);
  filter: drop-shadow(0 0 5px rgba(110, 245, 200, 0.55));
}

body[data-live="true"] .live-badge {
  color: #a8ffe2;
  text-shadow: 0 0 12px rgba(110, 245, 200, 0.55);
}

body[data-live="true"] .live-dot {
  width: 10px;
  height: 10px;
  background: var(--accent-mint);
  box-shadow: 0 0 10px var(--accent-mint), 0 0 20px rgba(110, 245, 200, 0.75);
  animation: live-pulse 1.8s ease-in-out infinite;
}

body[data-live="true"] .live-preview-wrap {
  border-color: rgba(145, 255, 218, 0.42);
}

body[data-live="true"] .live-preview-img {
  filter: brightness(1) saturate(1);
}

body[data-live="true"] .offline-overlay {
  opacity: 0;
}

body[data-live="true"] .live-title {
  color: #ffffff;
}

body[data-live="true"] .live-viewers {
  color: rgba(168, 255, 226, 0.88);
}

/* =========================================
   5. KATMAN: DEV JUMPSCARE KEDİ PENCERESİ
   ========================================= */
.cat-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  background: radial-gradient(
    ellipse at center,
    rgba(10, 6, 22, 0.82) 0%,
    rgba(2, 2, 8, 0.96) 100%
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

/* Açılışta sıfır gecikme — anında ekrana patlar */
.cat-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: none;
}

/* İlk çarpma anında kısa ışık patlaması (flaş) */
.cat-modal::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(210, 190, 255, 0.55) 45%,
    rgba(10, 6, 24, 0) 100%
  );
  opacity: 0;
  pointer-events: none;
}

.cat-modal.is-open::after {
  animation: jumpscare-flash 0.28s ease-out forwards;
}

.cat-modal-dialog {
  position: relative;
  width: 94vw;
  height: 93vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  will-change: transform, filter;
}

.cat-modal.is-open .cat-modal-dialog {
  animation:
    cat-jumpscare-hit 0.48s cubic-bezier(0.14, 0.98, 0.26, 1) forwards,
    cat-jumpscare-loom 2.2s linear 0.48s forwards;
}

.cat-modal-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  filter:
    drop-shadow(0 0 40px rgba(196, 181, 253, 0.4))
    drop-shadow(0 24px 70px rgba(0, 0, 0, 0.95));
}

.cat-modal-close {
  display: none;
}

/* =========================================
   ANİMASYONLAR
   ========================================= */
@keyframes bg-breathe {
  from { transform: scale(1.01); }
  to { transform: scale(1.038); }
}

@keyframes aura-pulse {
  0% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.96); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

@keyframes mist-drift-a {
  0% { transform: translateX(-4%) translateY(2%) scaleY(0.96); opacity: 0.72; }
  100% { transform: translateX(4%) translateY(-2%) scaleY(1.06); opacity: 0.95; }
}

@keyframes mist-drift-b {
  0% { transform: translateX(5%) translateY(-1%) scaleY(1.04); opacity: 0.58; }
  100% { transform: translateX(-5%) translateY(3%) scaleY(0.94); opacity: 0.86; }
}

@keyframes live-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.26); opacity: 0.65; }
}

@keyframes moon-float {
  from { transform: translateY(2px); opacity: 0.82; }
  to { transform: translateY(-3px); opacity: 1; }
}

@keyframes jumpscare-flash {
  0% { opacity: 0.92; }
  100% { opacity: 0; }
}

@keyframes cat-jumpscare-hit {
  0% {
    transform: scale(0.14) rotate(-8deg);
    filter: brightness(2.5) contrast(1.45);
  }
  18% {
    transform: scale(1.16) rotate(4deg);
    filter: brightness(1.4) contrast(1.2);
  }
  30% {
    transform: scale(1.02) translate(-22px, 14px) rotate(-3.5deg);
    filter: brightness(1.12) contrast(1.08);
  }
  42% {
    transform: scale(1.12) translate(20px, -14px) rotate(3deg);
    filter: brightness(1.05) contrast(1.05);
  }
  56% {
    transform: scale(1.03) translate(-16px, -10px) rotate(-2.2deg);
    filter: brightness(1) contrast(1.02);
  }
  70% {
    transform: scale(1.08) translate(14px, 10px) rotate(1.6deg);
  }
  84% {
    transform: scale(1.01) translate(-7px, 5px) rotate(-0.9deg);
  }
  100% {
    transform: scale(1.02) translate(0, 0) rotate(0deg);
    filter: brightness(1) contrast(1);
  }
}

@keyframes cat-jumpscare-loom {
  0% { transform: scale(1.02) translate(0, 0) rotate(0deg); }
  12% { transform: scale(1.03) translate(4px, -3px) rotate(0.5deg); }
  25% { transform: scale(1.04) translate(-4px, 3px) rotate(-0.5deg); }
  38% { transform: scale(1.05) translate(3px, 2px) rotate(0.4deg); }
  50% { transform: scale(1.06) translate(-3px, -2px) rotate(-0.4deg); }
  65% { transform: scale(1.07) translate(3px, -1px) rotate(0.3deg); }
  80% { transform: scale(1.08) translate(-2px, 2px) rotate(-0.3deg); }
  100% { transform: scale(1.1) translate(0, 0) rotate(0deg); }
}

/* =========================================
   MOBİL VE TABLET UYUMU
   ========================================= */
@media (max-width: 960px) {
  html,
  body {
    overflow-y: auto;
  }

  .page-shell {
    height: auto;
    min-height: 100%;
    justify-content: flex-start;
    padding: 46px 20px 52px;
    gap: 26px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    gap: 16px;
  }

  .center-slot {
    order: -1;
  }

  .status-card {
    height: auto;
    max-width: 100%;
    padding: 20px 18px;
  }

  .link-column {
    gap: 14px;
  }

  .relic-card {
    height: 78px;
  }

  .corner {
    width: 102px;
    height: 102px;
  }
}