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

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

html, body {
  background-color: #000;
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  height: 100svh;
  overflow: auto;
}

body {
  font-family: 'Ubuntu', sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 100svh;
  color: #eeeeee;
  text-align: center;
  padding: 0 1rem;
}

body > * {
  opacity: 0;
  transform: translateY(20px);
  animation: lang-fade-up 1.2s ease-out forwards;
}

body > *:nth-child(1) { animation-delay: 0.3s; }
body > *:nth-child(2) { animation-delay: 0.6s; }
body > *:nth-child(3) { animation-delay: 0.9s; }
body > *:nth-child(4) { animation-delay: 1.2s; }

.lang-option {
  opacity: 0;
  transform: translateY(20px);
  animation: lang-fade-up 1.2s ease-out forwards;
}

.lang-option:nth-child(1) { animation-delay: 1.5s; }
.lang-option:nth-child(2) { animation-delay: 1.8s; }
.lang-option:nth-child(3) { animation-delay: 2.1s; }

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

.lang-logo {
  width: 80%;
  max-width: 380px;
  margin-top: 2rem;
  margin-bottom: 1rem;
  opacity: 0;
  animation: lang-logo-zoom 1.8s ease-out forwards;
}

@keyframes lang-logo-zoom {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.lang-welcome {
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.lang-welcome h2 {
  margin: 0;
  font-size: 2rem;
  font-family: 'Trajan', serif;
  color: #fff;
}

.lang-welcome p {
  margin: 1rem 0 2.5rem;
  font-size: 1.2rem;
  color: #fff;
}

.lang-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  max-width: 900px;
  margin-bottom: 2rem;
  flex-wrap: nowrap;
}

.lang-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.lang-flag {
  opacity: 1 !important;
  width: 60px;
  height: auto;
  border-radius: 16px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.lang-flag:hover {
  transform: scale(1.08);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

.lang-option:active .lang-flag {
  transform: scale(0.95);
}

.lang-option span {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  color: #fff;
}

.lang-footer {
  padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom));
  font-size: 0.7rem;
  color: #bbbbbb;
  background: none;
  text-align: center;
}

.lang-footer a {
  color: #cccccc;
  text-decoration: underline;
}

@media (min-width: 768px) {
  .lang-footer { padding-bottom: calc(2rem + env(safe-area-inset-bottom)); }
}

@media (max-width: 767px) {
  .lang-footer { padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
}
