/* ===== Base reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* ===== Body ===== */
.ff-menu-body {
  background: radial-gradient(circle at center,
    #ffffff 0%,
    #f8f8f8 50%,
    #eeeeee 100%
  );
  color: #000;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ===== Frame ===== */
.ff-menu-wrap {
  width: 100%;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ff-menu-frame {
  width: min(520px, 100%);
  border: 2px solid #000;
  border-radius: 4px;
  background: #ffffff;
  padding: 1.8rem 2rem 1.4rem;
  box-shadow: 5px 5px 0 #000;
}

/* ===== Default Final Fantasy Serif Title ===== */
/* === Heading: Option 1 fantasy-style, loud but clean === */
/* === Jacquard 12 Heading === */
/* === Jacquard 24 Heading (Single Line) === */
.ff-title-ffxiv {
  font-family: "Jacquard 24", serif;
  font-size: clamp(1.8rem, 3.2vw, 2.55rem);  /* tuned to fit one line */
  font-weight: 400;                          /* only weight available */
  text-transform: uppercase;
  letter-spacing: 0.02em;                    /* tight fantasy spacing */
  text-align: center;
  white-space: nowrap;                       /* FORCE one line */

  color: #000;

  margin-top: 0.5rem;
  margin-bottom: 1.4rem;

  /* fade-in animation */
  opacity: 0;
  transform: translateY(8px);
  animation: ffTitleFadeIn 0.7s ease-out forwards;
}





/* ===== Main Menu List ===== */
.ff-menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ff-menu-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.5rem;
  text-decoration: none;
  color: #000;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border-radius: 3px;
  border: 1px solid transparent;
  position: relative;
}

.ff-cursor {
  width: 1.4rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.08s ease-out, transform 0.08s ease-out;
}

/* Hover effect: cursor shows + background tint */
.ff-menu-item:hover,
.ff-menu-item:focus-visible {
  border-color: #000;
  background: #f3f3f3;
  outline: none;
}

.ff-menu-item:hover .ff-cursor,
.ff-menu-item:focus-visible .ff-cursor {
  opacity: 1;
  transform: translateX(1px);
}

/* ===== Footer ===== */
.ff-menu-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 1.4rem;
  padding-top: 0.8rem;
  border-top: 1px solid #000;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Allow full text, no cutting */
.ff-footer-left,
.ff-footer-right {
  white-space: normal;
}

/* ===== Animation ===== */
@keyframes ffTitleFadeIn {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .ff-menu-frame {
    padding: 1.4rem 1.3rem 1.2rem;
  }

  .ff-menu-item {
    font-size: 0.82rem;
  }

  .ff-menu-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
