:root {
  --text-color: #f8fafc;
  --panel-border: rgba(81, 54, 25, 0.35);
  --accent-brown: #513619;
}

@font-face {
  font-family: "FredokaRegular";
  src: url("../fonts/Fredoka-Regular.ttf") format("truetype");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text-color);
  background-image: url("../images/npt-background.jpg");
  background-size: auto 100vh;
  background-position: left center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.landing-page {
  --column-pad-x: clamp(1rem, 3vw, 3rem);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 450px;
  margin-left: 0;
  margin-right: auto;
  gap: 0.9rem;
  padding: 1.5rem var(--column-pad-x) 2rem;
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.landing-page::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline: var(--column-pad-x);
  background-color: #ffffff;
  opacity: 0.75;
  z-index: 0;
}

.landing-page > * {
  position: relative;
  z-index: 1;
}

.left-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  flex: 0 0 auto;
}

.logo {
  width: min(290px, 100%);
  height: auto;
  display: block;
  margin: 0 auto;
}

.game-description {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  font-family: "FredokaRegular", "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--accent-brown);
  border: 0;
  border-radius: 14px;
  padding: 1rem 1.25rem;
}

.description-title {
  margin: 0 0 0.55rem;
  text-align: center;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.35;
}

.description-body {
  margin: 0;
  text-align: center;
  font-size: clamp(0.92rem, 1.15vw, 1.02rem);
  line-height: 1.4;
}

.signup-section {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 0.95rem;
  margin: 0 auto;
  flex: 0 0 auto;
}

.signup-title {
  margin: 0 0 0.6rem;
  text-align: center;
  font-size: clamp(0.92rem, 1.15vw, 1.02rem);
  line-height: 1.4;
  font-weight: 700;
  font-family: "FredokaRegular", "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--accent-brown);
}

.notify-form {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: nowrap;
}

.notify-form input[type="email"] {
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
  height: 2.45rem;
  padding: 0 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: #101418;
  font-size: 0.95rem;
}

.notify-form input[type="email"]::placeholder {
  color: #5b6770;
}

.notify-form button {
  align-self: auto;
  height: 2.45rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 8px;
  background: #513619;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: "FredokaRegular", "Trebuchet MS", "Segoe UI", sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.notify-form button:hover {
  background: #3f2a14;
  transform: scale(1.04);
}

.notify-form button:focus-visible {
  outline: 2px solid #d7e6a8;
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 767px) {
  body {
    background-image: url("../images/main-menu-background-vertical-1920x1604.png");
    background-size: cover;
    background-position: center center;
  }

  .landing-page::before {
    content: none;
  }

  .landing-page {
    width: min(620px, 100vw);
    margin-left: auto;
    margin-right: auto;
    padding-top: 1.1rem;
  }

  .left-column {
    align-items: center;
    width: 100%;
  }

  .logo {
    width: min(290px, 72vw);
  }

  .game-description {
    width: 100%;
    max-width: none;
    position: relative;
    overflow: hidden;
  }

  .signup-section {
    width: 100%;
    position: relative;
    overflow: hidden;
  }

  .game-description::before,
  .signup-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #ffffff;
    opacity: 0.75;
    z-index: 0;
  }

  .game-description > *,
  .signup-section > * {
    position: relative;
    z-index: 1;
  }
}
