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

:root {
  --home-bg-color: #000;
  --home-text-color: #fff;
  --home-gold: #D4AF37;
  --home-gold-hover: #b8962e;
  --home-font-body: Arial, sans-serif;
  --home-font-display: 'Trajan', serif;
  --home-btn-radius: 16px;
  --home-btn-min-height: 44px;
  --home-animation-duration: 0.6s;
  --home-animation-delay-step: 0.2s;
}

@font-face {
  font-family: 'Trajan';
  src: url('../fonts/Trajan.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html, body {
  height: 100%;
  width: 100%;
  background-color: var(--home-bg-color);
  color: var(--home-text-color);
  font-family: var(--home-font-body);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.home-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-nav-link {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: var(--home-text-color);
  background-color: var(--home-gold);
  border-radius: var(--home-btn-radius);
  font-family: var(--home-font-display);
  padding: 0.75rem 1.5rem;
  min-height: var(--home-btn-min-height);
  font-size: 1rem;
  width: 100%;
  max-width: 400px;
  margin: 10px 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
  opacity: 0;
  animation-name: home-fade-slide-in;
  animation-duration: var(--home-animation-duration);
  animation-fill-mode: forwards;
}

.home-nav-link:hover,
.home-nav-link:focus {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.7);
  background-color: var(--home-gold-hover);
}

.home-nav-link:active {
  transform: scale(0.98);
}

@keyframes home-fade-slide-in {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-nav a:nth-child(1) {
  animation-delay: calc(1 * var(--home-animation-delay-step));
}
.home-nav a:nth-child(2) {
  animation-delay: calc(2 * var(--home-animation-delay-step));
}
.home-nav a:nth-child(3) {
  animation-delay: calc(3 * var(--home-animation-delay-step));
}
.home-nav a:nth-child(4) {
  animation-delay: calc(4 * var(--home-animation-delay-step));
}

@keyframes home-pulse-glow {
  0% {
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
  }
  50% {
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.8);
  }
  100% {
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
  }
}

.home-nav-link::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: var(--home-btn-radius);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.home-nav-link:hover::after,
.home-nav-link:focus::after {
  background-color: rgba(212, 175, 55, 0.1);
  opacity: 1;
  animation: home-pulse-glow 1.5s infinite;
}

.home-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 0.7rem;
  color: #bbbbbb;
  background: none;
  opacity: 0;
  transform: translateY(20px);
  animation-name: home-fade-slide-up;
  animation-duration: var(--home-animation-duration);
  animation-delay: calc(5 * var(--home-animation-delay-step));
  animation-fill-mode: forwards;
}

@keyframes home-fade-slide-up {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-footer a {
  color: #bbbbbb;
  text-decoration: underline;
}

.home-footer a:focus {
  outline: 2px dashed var(--home-gold);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .home-nav-link {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

@media (min-width: 800px) {
  .home-nav-link {
    padding: 1rem 2rem;
    font-size: 1.15rem;
  }
}
