<!DOCTYPE html>
<html lang="ko">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">

  <title>오류가 발생했습니다</title>

  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: Arial, sans-serif;
      background-color: #f7f8fa;
      color: #222;
    }

    .error-container {
      min-height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 24px;
    }

    .error-content {
      width: 100%;
      max-width: 520px;
      text-align: center;
    }

    .error-icon {
      font-size: 64px;
      margin-bottom: 24px;
    }

    .error-title {
      font-size: 30px;
      font-weight: 700;
      margin-bottom: 16px;
    }

    .error-description {
      font-size: 16px;
      color: #666;
      line-height: 1.7;
      margin-bottom: 36px;
    }

    .button-wrap {
      display: flex;
      justify-content: center;
      gap: 12px;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;

      min-width: 130px;
      height: 48px;

      padding: 0 24px;

      border-radius: 10px;
      border: none;

      font-size: 15px;
      font-weight: 600;

      cursor: pointer;
      text-decoration: none;
    }

    .btn-home {
      background-color: #222;
      color: #fff;
    }

    .btn-back {
      background-color: #fff;
      color: #333;
      border: 1px solid #ddd;
    }

    .error-message {
      margin-top: 28px;
      font-size: 13px;
      color: #999;
    }

    @media (max-width: 480px) {

      .error-title {
        font-size: 25px;
      }

      .error-description {
        font-size: 14px;
      }

      .button-wrap {
        flex-direction: column;
      }

      .btn {
        width: 100%;
      }
    }
  </style>
</head>

<body>

<div class="error-container">

  <div class="error-content">

    <div class="error-icon">
      🧭
    </div>

    <h1 class="error-title">
      잠시 길을 잃었어요
    </h1>

    <p class="error-description">
      페이지를 불러오는 중 문제가 발생했습니다.<br>
      잠시 후 다시 시도하거나 홈으로 이동해주세요.
    </p>

    <div class="button-wrap">

      <button type="button"
              class="btn btn-back"
              onclick="history.back()">
        이전 페이지
      </button>

      <a href="/"
         class="btn btn-home">
        홈으로
      </a>

    </div>

    <!-- 개발 확인용 -->
    <p class="error-message"></p>

  </div>

</div>

</body>
</html>