/* reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* base */
body, html {
  width: 100%;
  height: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  background: #f0f2f5;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* container */
.wrapper {
  width: 100%;
  max-width: 480px;
}

/* header */
header {
  text-align: center;
  margin-bottom: 1.5rem;
}
header h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.subtitle {
  font-size: 0.9rem;
  color: #666;
}

/* form */
.search-form {
  display: flex;
  margin-bottom: 1rem;
}
#search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
}
.search-form button {
  padding: 0.75rem 1.5rem;
  border: none;
  background: #4e9af1;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background 0.2s;
}
.search-form button:hover {
  background: #357ac8;
}

.card {
  background: #fff;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.flag {
  display: none;
  border: 2px dashed #e67e22;
  background: #fdf2e9;
  color: #d35400;
  text-align: center;
  font-weight: 600;
}

@media (max-width: 400px) {
  header h1 {
    font-size: 1.5rem;
  }
  .search-form button {
    padding: 0.75rem 1rem;
  }
}
