* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #3d3a3d;
  color: #333;
}

header {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  padding: 20px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  height: 36px;
  width: 36px;
}

.site-title {
  font-size: 28px;
  color: #5e417a;
  margin: 0;
}

/* 🔲 타일 컨테이너 */
.tile-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding: 40px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

/* 🟦 타일 버튼 */
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1.2 / 1;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  border-radius: 12px;
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
  padding: 16px;
}

.tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* 🖼 아이콘 비율 유지 & 크게 */
.tile-icon {
  max-width: 48px;
  height: auto;
  margin-bottom: 12px;
}

/* 🎨 버튼별 색상 */
.btn1 { background-color: #6c5ce7; }
.btn2 { background-color: #00cec9; }
.btn3 { background-color: #fab1a0; color: #333; }
.btn4 { background-color: #fdcb6e; color: #333; }
.btn5 { background-color: #b2bec3; color: #000; }

/* 📱 모바일 대응 */
@media (max-width: 600px) {
  .tile {
    aspect-ratio: auto;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    padding: 12px;
  }

  .tile-icon {
    max-width: 36px;
    height: auto;
    margin: 0;
  }

  .logo-area {
    justify-content: center;
  }

  .site-title {
    font-size: 22px;
  }
}

.alert-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 16px 24px;
  border-radius: 10px;
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
  white-space: pre-wrap;
}

.alert-box.show {
  opacity: 1;
}
