/* İlk açılış yükleme ekranı. Ölçüler src/components/loader/loader.css ile aynı olmalı. */
html,
body {
  margin: 0;
  background: #08090a;
}
.boot {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(60% 50% at 50% 50%, rgba(72, 206, 96, 0.1), transparent 70%),
    #08090a;
}
.boot__mark {
  width: min(240px, 46vw);
  height: auto;
  overflow: visible;
}
.boot__b {
  animation: boot-open-b 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
}
.boot__g {
  animation: boot-open-g 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
}
.boot__bf,
.boot__gf,
.boot__d {
  transform-box: fill-box;
  transform-origin: center;
}
.boot__bf {
  animation: boot-float-b 3.6s ease-in-out 1s infinite;
}
.boot__gf {
  animation: boot-float-g 4.2s ease-in-out 1s infinite;
}
.boot__d {
  animation: boot-spin 1.1s linear 0.1s infinite;
}
@keyframes boot-open-b {
  from { transform: translate(0, 0); }
  to { transform: translate(-56px, -60px); }
}
@keyframes boot-open-g {
  from { transform: translate(0, 0); }
  to { transform: translate(56px, 60px); }
}
@keyframes boot-float-b {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-5px, 6px) rotate(-1.4deg); }
}
@keyframes boot-float-g {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(5px, -6px) rotate(1.4deg); }
}
@keyframes boot-spin {
  from { transform: rotate(0deg) scale(1.12); }
  to { transform: rotate(360deg) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .boot__b, .boot__g, .boot__bf, .boot__gf, .boot__d { animation: none; }
}
.boot-noscript {
  position: fixed;
  inset: auto 0 10vh;
  z-index: 1001;
  color: #e8ece9;
  font-family: system-ui, sans-serif;
  text-align: center;
  padding: 2rem;
}

/* aydınlık tema (theme-init.js <html data-mode> atar) */
html[data-mode='light'],
html[data-mode='light'] body {
  background: #f4f6f2;
}
html[data-mode='light'] .boot {
  background:
    radial-gradient(60% 50% at 50% 50%, rgba(72, 206, 96, 0.14), transparent 70%),
    #f4f6f2;
}
html[data-mode='light'] .boot__d {
  fill: #0d140f;
}
