@font-face {
  font-family: 'StellarOne';
  src: url('https://stellar-dominion.scuvanya.online/fonts/Despairs.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'StellarTwo';
  src: url('https://stellar-dominion.scuvanya.online/fonts/Prometheus.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'StellarThree';
  src: url('https://stellar-dominion.scuvanya.online/fonts/nasaliza.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --header-height: 60px;
}

body {
  font-family: sans-serif;
  background: #0e0d0b;
  color: #d4cbb8;
  min-height: 100vh;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  z-index: 10;
  background: rgba(14, 13, 11, 0.85);
  backdrop-filter: blur(8px);
}

.site-title {
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.admin-btn {
  position: absolute;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(212, 203, 184, 0.35);
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.admin-btn:hover {
  color: rgba(212, 203, 184, 0.85);
  border-color: rgba(212, 203, 184, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  min-height: 100vh;
  padding: calc(var(--header-height) + 1.5rem) 1.5rem 1.5rem;
  align-items: start;
}

.app-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: calc(90vh - var(--header-height));
  min-height: 400px;
  text-decoration: none;
  color: inherit;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  border-radius: 16px;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.4),
    0 12px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.3s ease;
  transform: perspective(1200px) translateZ(0) translateY(0);
}

.app-card:hover {
  filter: brightness(1.12);
  transform: perspective(1200px) translateZ(0) translateY(-10px) scale(1.02);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.5),
    0 24px 64px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.app-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0)     70%,
    rgba(0, 0, 0, 0.30)  75%,
    rgba(0, 0, 0, 0.30)  100%
  );
  transition: opacity 0.3s;
}

.app-card:hover .app-card__overlay {
  opacity: 0.7;
}

.app-card__content {
  position: relative;
  width: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
}

.app-card__name {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.app-card--stellar .app-card__name {
  font-family: 'StellarTwo';
  letter-spacing: 0.6rem;
}

.app-card__desc {
  font-size: 0.9rem;
  opacity: 0.7;
}

.app-card__logo {
  max-width: 100%;
  height: auto;
  display: block;
}
