﻿@font-face {
  font-family: "Minecrafter";
  src: url("assets/minecrafter.ttf") format("truetype");
  font-display: swap;
}

:root {
  --page-bg: #1f2024;
  --text-primary: #f5f5f5;
  --text-secondary: #ffffff;
  --accent: #39a113;
  --accent-shadow: #1c7002;
  --max-width: 36rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--page-bg);
  color: var(--text-primary);
  font-family: "Minecrafter", "Press Start 2P", "Trebuchet MS", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.container {
  max-width: 800px;
  text-align: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  display: grid;
  gap: clamp(1rem, 4vw, 2rem);
}

.image-villager {
  width: clamp(12rem, 40vw, 22rem);
  justify-self: center;
  filter: drop-shadow(0 0 18px rgba(255, 187, 68, 0.85)) drop-shadow(0 0 36px rgba(255, 187, 68, 0.45));
  animation: lantern-glow 3s ease-in-out infinite;
}

.container_title {
  font-size: clamp(1rem, 3vw, 1.8rem);
  line-height: 1.3;
}

.container_tagline {
  font-size: clamp(0.85rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  letter-spacing: 0.12em;
  text-decoration: underline;
}

.link-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: min(100%, 480px);
  margin: 0 auto;
  padding: 16px 40px;
  background: var(--accent);
  color: var(--text-primary);
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 2px;
  border: 4px solid #1f6f04;
  border-radius: 0;
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.35), inset 4px 4px 0 rgba(255, 255, 255, 0.1),
    0 10px 0 var(--accent-shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.link-button::before {
  content: "";
  position: absolute;
  inset: -4px;
  border: 4px solid rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.link-button:hover {
  transform: translateY(2px);
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.35), inset 4px 4px 0 rgba(255, 255, 255, 0.1),
    0 6px 0 var(--accent-shadow);
}

.link-button:active {
  transform: translateY(4px);
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.35), inset 4px 4px 0 rgba(255, 255, 255, 0.1),
    0 2px 0 var(--accent-shadow);
}

.button-icon {
  display: flex;
  align-items: center;
  font-size: 1.3em;
}

@media (prefers-reduced-motion: no-preference) {
  .image-villager {
    animation: float 4s ease-in-out infinite;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-25px);
  }
}

@keyframes lantern-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 18px rgba(255, 187, 68, 0.85)) drop-shadow(0 0 36px rgba(255, 187, 68, 0.45));
  }
  50% {
    filter: drop-shadow(0 0 24px rgba(255, 204, 102, 0.95)) drop-shadow(0 0 48px rgba(255, 204, 102, 0.55));
  }
}
